Arrow

stuck on 47 | Peter's Sports League Standings | Forum

Back to the sports standings script page

Please consider registering
guest

Log In

Lost password?
Advanced Search

— Forum Scope —

  

— Match —

   

— Forum Options —

   

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
stuck on 47
April 15, 2008
10:56 pm
Brian
Guest

Peter
I stuck at line 47 on the standings.php. I'm new at php. I;ve inserted the ftp, my user id and password. What would the dbase be. Is it the file ../worksite/standings.php? This is where I have it stored on the server. Also do I use standings.php as the home page.
Any help would be appreciated.

April 16, 2008
1:00 am
Peter
Admin
Forum Posts: 841
Offline

Hi Brian, the database information is in settings.php:


// Set your database information
$sportsdb_host = 'localhost';
$sportsdb_user = 'yourdbuser';
$sportsdb_pass = 'yourdbpassword';
$sportsdb_db = 'yourdbname';

If you are getting an error on line 47 of standings.php, this means that the information you entered in those settings are incorrect. You need to have a MySQL database for the script to work. Therefore, you should have login information that is completely separate from your FTP login information. Ask your web host if you are unsure about whether you have a MySQL database on your account and if so, what the access details are.