stuck on 47 | Peter's Sports League Standings | Forum
Back to the sports standings script page
10:56 pm
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.
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.