RE: [PHP] why does my querry work in the mysql client but not in php?

From: Date: Thu, 29 Aug 2002 11:50:30 +0000
Subject: RE: [PHP] why does my querry work in the mysql client but not in php?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-114502@lists.php.net to get a copy of this message
[snip] 2. Trap MySQL errors for the query by doing something like this; if(!($result = mysql_query($query, ))){ print("MySQL reports: " . mysql_error . "\n"); exit(); } [/snip] TYPO!!! :^] Should be mysql_error() (note the parentheses) HTH! Jay ***************************************************** * Texas PHP Developers Conf Spring 2003 * * T Bar M Resort & Conference Center * * New Braunfels, Texas * * Contact jay.blanchard@niicommunications.com * * * * Want to present a paper or workshop? Contact now! * *****************************************************

« previous php.general (#114502) next »