View Single Post
Old February 17th, 2006, 12:02 AM   #5 (permalink)
mr_fern
All Ur Base R Belong 2 Us
Excelling Contributor
 
Joined in Feb 2005
Lives in Vegas & New York
830 posts
Gave thanks: 2
Thanked 7 times
Re: What's wronge with my database??!!!

Quote:
Originally Posted by Meesho
Hi mr_fern
i changed it .. what will happen?!
mysql_error() returns a string which specifies the last error occured in mysql on a script

for example, if you had:

mysql_query("SELECT * FROM table_doesnt_exist") or die ( mysql_error() );

The script will die when it tries to execute the query and print to the screen that the table doesn't exist.
__________________
Nobody doing nothing
mr_fern is offline   Reply With Quote