Re: [PHP] deleting multiple items from a database

2004-10-13 Thread Curt Zirzow
* Thus wrote Adil: > > As far as the code goes what I'm doing is retrieving each record from the > database and assigning the "value" attribute of each checkbox the unique id > from the database. From that point on, when a checkbox is checked and the > delete button is pressed, I push each checke

Re: [PHP] deleting multiple items from a database

2004-10-13 Thread Robby Russell
On Wed, 2004-10-13 at 16:11 -0400, Adil wrote: > function deleteFiles() { > foreach($_POST['stack'] as $i) {//This should work but I > can't > tell if it is or isn't > mysql_query("DELETE FROM uploads WHERE upload_id =" . "$i"); > } >header("Location: http://"; . $_SERV

RE: [PHP] deleting multiple items from a database

2004-10-13 Thread Jay Blanchard
[snip] function deleteFiles() { foreach($_POST['stack'] as $i) {//This should work but I can't tell if it is or isn't mysql_query("DELETE FROM uploads WHERE upload_id =" . "$i"); } [/snip] Try print_r $_POST['stack'] and see what you get. -- PHP General Mailing List (http