Posted by Rik on 08/13/07 17:56
On Mon, 13 Aug 2007 19:53:18 +0200, Big Moxy <bigmoxy@gmail.com> wrote:
> Can someone please advise me on how to implement this?
>
> The data entered by a user on form 1 on page1.php is posted to
> delete.php to remove that row from a table. After the SQL operation
> the user is returned to page1.php.
>
> How can I determine the success or failure of the SQL operation so I
> can display an appropriate response message to the user?
mysql_affected_rows() will tell you how many rows are affected by the
DELETE statement. Store the success or failure in a session at delete.php,
read it out in page1.php.
--
Rik Wasmus
[Back to original message]
|