Domain Name Forum

Domain Name Forum (http://www.domainnameforum.org/index.php)
-   Programming (http://www.domainnameforum.org/forumdisplay.php?f=18)
-   -   Need Help in Access Error (http://www.domainnameforum.org/showthread.php?t=153142)

jackwebso 09-21-2012 12:29 AM

Need Help in Access Error
 
Hello Again,

Please help with this link problem.

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'myuser'@'localhost' (using password: XYZ@123)


<?php
function connectTo() {
$host = "localhost";
$db_name = "myDB";
$username = "myUser";
$password = "passs";
$link = mysql_connect("$host", "$username", "$password", "$db_name");
return $link;
}
?>

in another file is this line

$link = connectTo();

Thanks in advance


All times are GMT -4. The time now is 11:14 PM.

Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.