justedee Posted March 31, 2007 Share Posted March 31, 2007 Warning: mysql_connect(): Access denied for user 'review'@ (I delete this part ).net' (using password: YES) in /home/content/d/a/z/dazedangels/html/review/conn.php on line 4 Access denied for user 'review'@(I delete this part ).net' (using password: YES) These are lines 1 – 4 1 <? 2 3 //connect to the database server 4 $connection = mysql_connect($db_host, $db_username, $db_password) or die(mysql_error()); I’m very new at this (and 6 ½ month pregnant – mind gone!) I keep searching the web and googling the error, but I’m not sure what I’m looking for. Any ideas? ~eDee Quote Link to comment Share on other sites More sharing options...
AndyB Posted March 31, 2007 Share Posted March 31, 2007 um, $db_host, $db_username, and $db_password are not defined in your script anywhere (unless that's the mysterious blank line 2). I'd also highly recommend using <?php not <? in case you ever run into a server where 'short tags' are not enabled. Quote Link to comment Share on other sites More sharing options...
bossakungen Posted April 2, 2007 Share Posted April 2, 2007 Problem is probably connected to your variables ($db_host, $db_username, $db_password), maybe you have a mistype somewhere? Do an echo on those three variables to see if they are showing the correct values, should give you some relevant information I think. Also, as previous poster said, it is a good idea to use <?php instead of <?. Quote Link to comment Share on other sites More sharing options...
MadTechie Posted April 2, 2007 Share Posted April 2, 2007 as AndyB stated... his missing the $db_host, $db_username, and $db_password are not defined in your script anywhere Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.