kaareka Posted April 4, 2013 Share Posted April 4, 2013 <?global $username;require 'dconn.php';session_start();$username = @$_SESSION["username"];$connection = mysql_connect($db_server, $db_user,$db_pass) or die(mysql_error());mysql_select_db($db_name, $connection) or die(mysql_error()); -------- how can use this code i wanna know how put the server name and the user and pass / and thank's for helping Link to comment https://forums.phpfreaks.com/topic/276533-warning-mysql_connect-access-denied-for-user-database-usernamlocalhost-using-password-yes-in-homeu781728022public_htmlrequireincphp/ Share on other sites More sharing options...
requinix Posted April 4, 2013 Share Posted April 4, 2013 Edit the variables in dconn.php. Link to comment https://forums.phpfreaks.com/topic/276533-warning-mysql_connect-access-denied-for-user-database-usernamlocalhost-using-password-yes-in-homeu781728022public_htmlrequireincphp/#findComment-1422929 Share on other sites More sharing options...
kaareka Posted April 5, 2013 Author Share Posted April 5, 2013 ty so much but now i can't to make id i think some error in database Link to comment https://forums.phpfreaks.com/topic/276533-warning-mysql_connect-access-denied-for-user-database-usernamlocalhost-using-password-yes-in-homeu781728022public_htmlrequireincphp/#findComment-1422995 Share on other sites More sharing options...
requinix Posted April 5, 2013 Share Posted April 5, 2013 If you want help with that you'll have to explain what's wrong. We're not psychic. Link to comment https://forums.phpfreaks.com/topic/276533-warning-mysql_connect-access-denied-for-user-database-usernamlocalhost-using-password-yes-in-homeu781728022public_htmlrequireincphp/#findComment-1423001 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.