note 23550 added to function.msql-error
| From: | knoj at knoj dot com | Date: | Mon, 22 Jul 2002 03:36:59 +0000 |
| Subject: | note 23550 added to function.msql-error | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-33375@lists.php.net to get a copy of this message | ||
The best way to do this is to use it only if you are having troubles.
Normally, a:
"or die("Error preforming action");"
bit of code should follow your call to the db. If you come accross the message, and want to find
out what it means, then comment out the "or die()" part (making sure to properly place
your ";") Then on the following line put:
print(mysql_error());
and that should tell you what the problem is. Then when you have finished fixing the problem,
remove the print statement, and uncomment the "or die()"
--
http://www.php.net/manual/en/function.msql-error.php
http://master.php.net/manage/user-notes.php?action=edit+23550
http://master.php.net/manage/user-notes.php?action=delete+23550
http://master.php.net/manage/user-notes.php?action=reject+23550