When I upload the code below I get this error:
Could not select the database because: ' . mysql_error() . ''); } } else { die ('
Could not connect to MYSQL because: ' .mysql_error() . '
Here is the code. I doubled checked the values for the dbIP, username, and pwd:
<?php
//This script will access the current database.
// address error handling.
ini_set ('display_errors', 1);
error_reporting (E_ALL & ~E_NOTICE);
Connect to Database
if ($dbc = @mysql_connect ('databasehost ip', 'username', 'password')) {
if (!@mysql_select_db){
die ('<p>Could not select the database because: <b>' . mysql_error() . '</b></p>');
}
} else {
die ('<p>Could not connect to MYSQL because: <b>' .mysql_error() . '</b></p>');
}
?>