RE: [PHP] verifying sql INSERTs
| From: | Chris W. Parker | Date: | Tue, 26 Aug 2003 16:31:28 +0000 |
| Subject: | RE: [PHP] verifying sql INSERTs | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-160799@lists.php.net to get a copy of this message | ||
John W. Holmes <mailto:holmes072000@charter.net>
on Monday, August 25, 2003 5:37 PM said:
> You should use mysql_error() to ensure your query did not fail for any
> reason. Assuming the query was successful, you can use
> mysql_affected_rows() to see if it actually had any impact on the
> database, i.e. the row was inserted.
Hey good idea. I'll do some experiment'n.
Chris.