topical media & game development
professional-sql-12-admin-delete-sql.php / php
#! /usr/bin/php
<?php
include '../lib/common.php';
include '../lib/db.php';
// retrieve list of tables
GLOBALS['DB']);
while (table_result))
{
// retrieve list of column names in table
table_row[0],
column_row = mysql_fetch_assoc(column_row['Field'] == 'IS_DELETED')
{
mysql_query('DELETE FROM ' . GLOBALS['DB']);
// break out to process next table
mysql_free_result(column_result);
}
mysql_free_result(GLOBALS['DB']);
?>
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.