Re: Delete rows from database

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux