Free Games Forum
Free Games Games Forums Music Forums TV Forums

  Free Games Forum Home FORUM
HOME
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN
Rules & FAQ RULES / FAQ
REPORT SPAM

Free Games Forum: Game Technology: PHP Forum:
Help

 

 


coolgreen44
Senior Member

Jan 8, 2006, 1:25 PM

Post #1 of 4 (442 views)
Shortcut
Help Can't Post


Code
Warning: mysql_connect(): Access denied for user: 'cg8loo07_topsite@localhost' (Using password: YES) in /home/cg8loo07/public_html/topsite/admin/connect.php on line 2 
I cannot connect to the database because: Access denied for user: 'cg8loo07_topsite@localhost' (Using password: YES)



I keep getting that error what am I doing wrong? I think I did it right.


Code
 <? 
$dbh=mysql_connect ("localhost", "cg8loo07_topsite", "<password>") or die ('I cannot connect to the database because: ' . mysql_error());
mysql_select_db ("cg8loo07_topsite");
if(!$db)
die("no db");
if(!mysql_select_db("db_name",$db))
die("No database selected.");
if(!get_magic_quotes_gpc())
{
$_GET = array_map('mysql_real_escape_string', $_GET);
$_POST = array_map('mysql_real_escape_string', $_POST);
$_COOKIE = array_map('mysql_real_escape_string', $_COOKIE);
}
else
{
$_GET = array_map('stripslashes', $_GET);
$_POST = array_map('stripslashes', $_POST);
$_COOKIE = array_map('stripslashes', $_COOKIE);
$_GET = array_map('mysql_real_escape_string', $_GET);
$_POST = array_map('mysql_real_escape_string', $_POST);
$_COOKIE = array_map('mysql_real_escape_string', $_COOKIE);
} ?>



I had my pass in I took it out for this im tring to run a php script so I can create a topsite thing but I get the error above. What should I do?


Cybernations



SkillzDatKillz
Senior Member


Jan 18, 2006, 2:59 PM

Post #2 of 4 (413 views)
Shortcut
Re: [coolgreen44] Help [In reply to] Can't Post

Im not sure what your trying to do, try editing it's permissions.


coolgreen44
Senior Member

Jan 24, 2006, 9:46 AM

Post #3 of 4 (401 views)
Shortcut
Re: [SkillzDatKillz] Help [In reply to] Can't Post

Im using another topsite now, I had taz and xbot try to do it and they couldnt.


Cybernations


DeadMeat™
Enthusiast


Feb 2, 2006, 2:13 PM

Post #4 of 4 (394 views)
Shortcut
Re: [coolgreen44] Help [In reply to] Can't Post

I know how to fix that.Ill try.If you want ill tell you how.

 
 
 


Search for (options) Web Design by Web Ideas - Page loaded in: 0.15 s on (CGI/1.1)