MySQL Forums
Forum List  »  Other Migration

Re: Reinstalled MySQL: PHP doesn't see databases
Posted by: Leo Gil
Date: August 06, 2004 02:52PM

Jules,

What is the output of your phpinfo(); ? Does is show the MySQL API ?

What do you mean about can't see the database?

About the error checking you could use the mysql_error() function:

$connection = mysql_pconnect("$host", "$user", "$pw");
$dbname = mysql_select_db("dbname", $connection);

if (!$connection) {
echo mysql_error($connection);
}
if (!$dbname) {
echo mysql_error($dbname);
}

If you don't have any errors, your connection from PHP to MySQL should be working fine, you may have other problems on your code.

Best regards

Leo

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Reinstalled MySQL: PHP doesn't see databases
2813
August 06, 2004 02:52PM


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.