Re: error logging MySQL syntax errors?
| From: | Kevin Murphy | Date: | Fri, 27 Apr 2007 17:48:55 +0000 |
| Subject: | Re: error logging MySQL syntax errors? | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-43502@lists.php.net to get a copy of this message | ||
put:
echo mysql_error();
right after the sql query.
-- Kevin Murphy
Webmaster: Information and Marketing Services
Western Nevada Community College
www.wncc.edu
775-445-3326
On Apr 27, 2007, at 10:15 AM, Tim McGeary wrote:
I am getting semi-ambiguous messages in the browser like:You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 4Is there a way in my PHP script to turn on a logging that is more specific about which MySQL statement in the page is the problem? "line 4" certainly doesn't help. Tim --PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php