Re: [PHP-DB] Multiple deletes and updates...

2004-03-04 Thread mustafa ocak
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]

RE: [PHP-DB] Multiple deletes and updates...

2004-03-04 Thread Hutchins, Richard
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

Re: [PHP-DB] Multiple deletes and updates...

2004-03-04 Thread Tristan . Pretty
: [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