You can use checkboxes to do it :
input type=checkbox name=delrec[] value=?=$recid?
and in the code
foreach($_POST[delrec] as $ccc) {
$res=mysql_query(delete from table_name where id= $ccc);
}
HTH
Mustafa
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Are you thinking about something like (off the top of my head, untested):
input type=\checkbox\ name=\update[]\ value=\.$row[personID].\
checked
input type=\checkbox\ name=\delete[]\ value=\.$row[personID].\
checked
for each of the people listed on your page?
Then, in the script that handles
: [PHP-DB] Multiple deletes and updates...
You can use checkboxes to do it :
input type=checkbox name=delrec[] value=?=$recid?
and in the code
foreach($_POST[delrec] as $ccc) {
$res=mysql_query(delete from table_name where id= $ccc);
}
HTH
Mustafa
- Original Message -
From