RE: [PHP] deleting multiple items from a database

From: Date: Wed, 13 Oct 2004 20:26:59 +0000
Subject: RE: [PHP] deleting multiple items from a database
Groups: php.general 
Request: Send a blank email to php-general+get-199434@lists.php.net to get a copy of this message
[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.

« previous php.general (#199434) next »