Re: Deleting multiple items from database using checkboxes
| From: | Aitor | Date: | Mon, 07 Oct 2002 20:28:11 +0000 |
| Subject: | Re: Deleting multiple items from database using checkboxes | ||
| References: | 1 | Groups: | php.general php.windows |
| Request: | Send a blank email to php-general+get-119138@lists.php.net to get a copy of this message | ||
>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 say what to delete from the table. If you want
to delete more than one thing you should use more than one variable, one for
each entry.
I hope this help you because I'm a newbie with this. :)