Login   Register  
PHP Classes
elePHPant
Icontem

File: delete_sample.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Ihab Abu Afia  >  basic_db  >  delete_sample.php  >  Download  
File: delete_sample.php
Role: Example script
Content type: text/plain
Description: Delete Example
Class: basic_db
Manipulate MySQL table records programmatically
Author: By
Last change:
Date: 7 years ago
Size: 302 bytes
 

Contents

Class file image Download
<?

include('basic_db.php');

$db = new Database;
$db->Table_Name('accounts');
$db->doPrint();
$done $db->delete('user_id'7);

if(
$done)
{
    echo 
"The record has been deleted";
}
else
{
    echo 
"There was an error deleting the record, please check your conncetion information";
}
?>