PHP linking to MySQL database problems...

A

Anonymous

Guest
Hi,

echo mysql_connect('localhost', 'root', 'paradox',); i think the last comma is wrong, write: mysql_connect('localhost', 'root', 'paradox'); as long as you have a user 'root' with password 'paradox' defined in your mysql installation...

Regards
 
Hi,

I never had such a problem... maybe you don't have the right syntax, try:

$link = mysql_connect ("host", "user", "password") {
or die ("Could not connect");
}
 
Well all you need to do is have a php_mysql.dll in your extentions folder and remove the ; infornt of that line in php.ini: thats all. Oh restart your webserver as well
 
Back
Top