Delete multiple records from checkboxes

From: Date: Tue, 27 Jun 2000 23:48:39 +0000
Subject: Delete multiple records from checkboxes
Groups: php.general 
Request: Send a blank email to php-general+get-3476@lists.php.net to get a copy of this message
I have a form where a user can delete records by checking the checkbox of each desired item. I am having trouble performing a delete statement that includes the WHERE IN clause. DELETE FROM MyTable WHERE MyId IN (ID_1, ID_2, ID_X) Where ID_1, ID_2, ID_X are values from the form. How would I go about doing this? I tried putting the $formvalue for ID_1, ID_2, ID_X to no avail. I'm new to PHP so I'm sure this is something pretty easy. Thanks. O.J. Alcaraz Abaris Technologies

« previous php.general (#3476) next »