|
Post by Tessa on Jul 2, 2011 18:09:59 GMT -5
Hey ladies,
Im working on moving SAI & SCS over to thesimcommunity and Im having some problems getting everything to work properly.
Im getting an "access denied" error on line 9 (see bold, quoted text)
This is the part of my code that is giving me the error.
Im hopeless when it comes to php, so any help would be greatly appreciated!
|
|
C&H Ranch
Senior Member
LIKE A BOSS!
Posts: 350
|
Post by C&H Ranch on Jul 2, 2011 23:52:26 GMT -5
Did you try "localhost" as the server name? Of course, I'm the blind leading the blind, lol...
|
|
|
Post by Tessa on Jul 3, 2011 8:16:32 GMT -5
It's already set at localhost so unfortunately that won't be the fix lol
|
|
Almare
Junior Member
Posts: 99
|
Post by Almare on Jul 3, 2011 13:13:52 GMT -5
Try without the quotes around the variables:
// Connect to server and select database. mysql_connect($host, $username, $password)or die("cannot connect"); mysql_select_db($db_name)or die("cannot select DB");
The only other thing would be if your username/password are wrong or not connected to that database.
|
|
|
Post by Tessa on Jul 3, 2011 13:31:23 GMT -5
Thank you Almare. Unfortunately, that wasn't it either. I PMed Noel to make sure I had all of my stuff right and to see if there is anything Im missing.
|
|