: 'Davy Obdam'; Php-Windows Mailing
Subject: RE: [PHP-WIN] Deleting multiple items from database using
checkboxes
Wouldn't you want to do a foreach() loop?
i.e.
foreach($dele as $whatever) {
mysql_query(DELETE FROM gastenboek WHERE entryID=$whatever); }
I'm sure the synta
lots of
information.
-Dash
-Original Message-
From: Davy Obdam [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 07, 2002 1:05 PM
To: Php Mailinglist; Php-Windows Mailing
Subject: [PHP-WIN] Deleting multiple items from database using checkboxes
Hi people,.
I have a guestbook admin page
>my querylooks like this :
>DELETE FROM gastenboek WHERE entryID=$dele .
I think that the mySQL query should look like:
DELETE * FROM gastenboek WHERE entryID=$dele
so, you should do something like this:
DELETE $thinks_to_delete FROM gastenboek WHERE entryID=$dele
After the "DELETE" you must
Hi people,.
I have a guestbook admin page were i would like to delete one item or
more items from the database if necessary. I have modified my normal
guestbookpage so that it has checkboxes in front of every entry. This is
my code:
Now i can select multiple items. But i have tried to delete e