Re: [PHP] Print mysql errors

2003-10-20 Thread Eugene Lee
On Mon, Oct 20, 2003 at 05:28:08PM -0500, Joseph Bannon wrote: : : How do you print the error message sent back from MySQL? : : $resultCC = mysql_query($queryCC) or die("???"); Stop using stupid Perl syntax. $res = mysql_query($query); if ($res === false) {

Re: [PHP] Print mysql errors

2003-10-20 Thread John W. Holmes
Joseph Bannon wrote: How do you print the error message sent back from MySQL? $resultCC = mysql_query($queryCC) or die("???"); ??? = mysql_error() -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.com

[PHP] Print mysql errors

2003-10-20 Thread Joseph Bannon
How do you print the error message sent back from MySQL? $resultCC = mysql_query($queryCC) or die("???"); J. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php