|
use this one:
if(!($dbcon = mysql_pconnect("localhost", "username", "password")))
{
print("Failed connection 1 \n");
exit();
}
//select db
if(!mysql_select_db("dbname", $dbcon))
{
print("Failed connection 2 \n");
exit();
}
and don't forget to flush privileges.
and as a tip, you should not be using root to connect to your db, you should create another user.
__________________
I do stuff - aIm CS_Jay_D
|