RE: deleting multiple items from a database

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[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://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux