Help needed on database selection, tried several times not working

Status
Not open for further replies.

dfpsx10h

New Member
Messages
5
Reaction score
0
Points
1
$link = mysql_connect('localhost', 'username', 'password') or die("DB error #00");
$con = mysql_select_db("******_**", $link) or die('DB error #03.');

The database connection is passed, but database selection failed. The program is in the file timesheet/index.php.

Thanks in advance!
 

Dead-i

x10Hosting Support Ninja
Community Support
Messages
6,084
Reaction score
368
Points
83
Hi,

Please assign your MySQL user to your database. You can do this from the very bottom of the MySQL Databases section of cPanel. :)

8fae5644a462bd6c98900a47d3cf6644.png


Thank you,
 
Status
Not open for further replies.
Top