[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
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://; .
* 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 checked
3 matches
Mail list logo