Re: checking if a MySQL update worked

From: Date: Mon, 30 Sep 2002 16:52:46 +0000
Subject: Re: checking if a MySQL update worked
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-118235@lists.php.net to get a copy of this message
mysql_error() will contain error text if "it didn't work" Henry wrote:
Hi All, mysql_affected_rows() returns zero if you update without changing the data in a database record. How do you tell the difference betwix "it worked but nothing changed" as opposed to "it didn't work"? TIA Henry


« previous php.general (#118235) next »