Re: Delete rows from database

From: Date: Sat, 05 Jan 2008 14:22:34 +0000
Subject: Re: Delete rows from database
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-266777@lists.php.net to get a copy of this message
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 the form that is (presumably) submitted when the user hits "Delete". In your processing you collect the row-ids or something else you can use in the <whereclause> : "DELETE FROM table WHERE <whereclause>". /Per Jessen, Zürich

« previous php.general (#266777) next »