Re: [PHP] Delete rows from database

2008-01-07 Thread Jim Lucas
Balasubramanyam A wrote: Hi all, I'm searching names from MySQL and printing it on a browser. Also, I've provided checkbox for all the rows and a delete button for a page. I want to delete the selected rows from MySQL when I click on the "Delete" button. How do I do that? Here is the code which

Re: [PHP] Delete rows from database

2008-01-05 Thread Daniel Brown
On Jan 5, 2008 9:03 AM, Balasubramanyam A <[EMAIL PROTECTED]> wrote: > Hi all, Hi! [snip] > while ($line = mysql_fetch_array($resultset, MYSQL_ASSOC)) { [snip] Just a side note: wouldn't it be easier to just use mysql_fetch_assoc() ? It does the exact same thing, with less typing. --

Re: [PHP] Delete rows from database

2008-01-05 Thread Per Jessen
Balasubramanyam A wrote: > Hi all, > > I'm searching names from MySQL and printing it on a browser. Also, > I've provided checkbox for all the rows and a delete button for a > page. I want to delete the selected rows from MySQL when I click on > the "Delete" button. How do I do that? You process