Thank you for taking the time to help me with my somewhat "newbie" problem.
I was recently given a content management system by one of my friends... I unzipped it, put it in the correct directory, etc. I set up the database, and did everything right... When I go to the pages, it says things like:
Warning: mysql_numrows(): supplied argument is not a valid MySQL result resource in /public_html/cms/cms/news.php on line 25
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /public_html/cms/cms/news.php on line 15
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /public_html/cms/cms/showMenu.php on line 6
I asked my friend, and he said that this was due to an incorrect username and or password. I changed everything, went over it, triple checked it, and I get the same thing! I know that the Content Management System works, because it is on his site as well. Also, the username and passwords are drawn from one file:
$db_server = "localhost"; //Usually localhost, ask your webhosting provider if localhost does not work
$db_user = "********_admin"; //Database username; consult web host for instructions on setting up a database user
$db_password = "************"; //Database password, consult web host for instructions on setting up a database user
$db_database = "********_******"; //You may create a new database or have cms share a database with something else
//Internal variable configuration
$settings['table_prefix'] = "ffc_"; //If cms is sharing a database with something else, you might want to have a prefix.
$settings['list_tags'] = "1"; //Set to 1 if you want to list a static page's tags in the body, 0 if you don't.
$settings['site_title'] = "interweb";
//Don't bother with anything below this line
$db_connection = mysql_connect("$db_server","$db_user","$db_password");
die('Could not connect: ' . mysql_error());