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

2004-03-04 Thread Tristan . Pretty
To <[EMAIL PROTECTED]> cc Subject Re: [PHP-DB] Multiple deletes and updates... You can use checkboxes to do it : and in the code foreach($_POST["delrec"] as $ccc) { $res=mysql_query("delete from table_name where id= $ccc"); } HTH Mustafa - Original

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): for each of the people listed on your page? Then, in the script that handles the updating stuff, you simply do a foreach($_POST["update"] as $value){ $sql = "some UPDATE query using $value"; } foreach($_POST["

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

2004-03-04 Thread mustafa ocak
You can use checkboxes to do it : 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]> Sent: Thursday, March 04, 2004 3:36 PM Subject