RE: Query executing
am 05.10.2007 15:57:33 von Richard.Hutchins
The mysql_affected_rows() function will tell you how many rows were affected
by the DELETE query you just fired. You can also test for TRUE or FALSE on
the mysql_query() function if you just want to know if the query was
successful or not.
Rich
-----Original Message-----
From: ron.php [mailto:ron.php@actsministries.org]
Sent: Friday, October 05, 2007 9:52 AM
To: php-db@lists.php.net
Subject: [PHP-DB] Query executing
How would I know if this mySQL query:
DELETE FROM `table` WHERE `date_to_be_deleted` LIKE '$todays_date'
actually deleted any rows from the table?
Ron
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Query executing
am 06.10.2007 02:22:45 von Thomas Tschernich
> How would I know if this mySQL query:
>
> DELETE FROM `table` WHERE `date_to_be_deleted` LIKE '$todays_date'
>
> actually deleted any rows from the table?
www.php.net/mysql_affected_rows
Greetings,
Thomas Tschernich
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php