Re: problem with mysql_query
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:
echo(mysql_error());
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
Subject
Written By
Posted
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.