04-23-2008, 02:28 AM
|
#6 (permalink)
|
|
The Prestige
Join Date: Dec 2007
Posts: 1,044
Thanks: 193
|
PHP Code:
$table = '' // Your table; $id = $_GET['id']; // Or something else? if ( !empty($_POST['button_delete']) // the delete button && isset($_POST['button_delete'] ) { mysql_query("DELETE FROM `$table` WHERE `id` = '$id'");
if (mysql_affected_rows()) echo "Deleted!"; else die(mysql_error); }
Try this, the button_delete post is a button, radio, check, whatever.
__________________
VillageIdiot can have my babbies ;d
|
|
|
|