Re: [phplib] OT: Deleting Queries from Checkbox From: Stephen Woodbridge (woodbri <email protected>)
Date: 05/16/01

The value for the delete check box needs to the value of the primary key
or some unique about that row. The your sql would be:
"DELETE FROM test_table WHERE key IN (?)"
and the value for ? would be a comma separated list of the keys.

-Steve

HurricaneIndy <email protected> wrote:
>
> Hey all,
> I have query that lists all the rows in a table. I would like to be able to delete any of them using a checkbox. I added the checkbox tags in a while loop along with the rest of the queries so it prints out nicely. Of course I have a statement like:
>
> mysql_query("DELETE FROM test_table WHERE ????")
>
> This is the part I am stuck at...How exactly do I write this part of the code not knowing how many checkboxes will be selected to delete?
>
> Thanks in advance guys..
>
> Indy
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: phplib-unsubscribe <email protected>
> For additional commands, e-mail: phplib-help <email protected>

---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>