PHP Classes

File: delete_example.php

Recommend this page to a friend!
  Classes of dan boorn   OO Mysql Wrapper   delete_example.php   Download  
File: delete_example.php
Role: Example script
Content type: text/plain
Description: Delete Example
Class: OO Mysql Wrapper
MySQL database SQL queries wrapper
Author: By
Last change:
Date: 17 years ago
Size: 400 bytes
 

Contents

Class file image Download
<?
   
##################################
    # Delete Example
    ##################################
   
   
require('mysql.php');
   
$mysql = new mysql();
   
   
//Create new sql obj
   
$node = new sqlNode();
   
   
$node->table = "members";
   
$node->where = "where MemberID = 1";
   
   
// Execute query and store results
   
if(($results = $mysql->delete($node)) === false )
        die(
$mysql->debugPrint());
       
?>