MySQL Forums
Forum List  »  PHP

Re: problem with mysql_query
Posted by: Roland Bouman
Date: August 16, 2005 08:30AM

It seems you performed a call to mysql_connect() prior to this. That call did not create a connection succesfully.

Locat the line that sais mysql_connect(), and modify it so that it reads:

$conn = mysql_connect(
..connection parameters...

then do:

if ($conn){
//business as usual
} else {
//WHoops! error connecting:

exit(); //I'll 'die()' when I'm ready, thank you!

or something equivalent. This will give you an indication as to why you cant connect

god luck

Options: ReplyQuote

Written By
August 15, 2005 05:41AM
Re: problem with mysql_query
August 16, 2005 08:30AM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.