Dear All:
Anybody can advises me, how can I delete all checked records in table.
below is the script, i wrote to retrieve records from a db and display on a table. when user check on the checkbox beside the records and click delete. It will delete the records.
[php]
<?php $dbconnect; $db; $sql_catall; $result = mysql_query($sql_catall); if (!$result) { echo "Could not successfully run query ($sql_catall) from DB: " . mysql_error(); exit; } if (mysql_num_rows($result) == 0) { echo "No rows found, nothing to print so am exiting"; exit; } while ($row = mysql_fetch_assoc($result)) { echo "[/php]
[/code]