Well now the error message is : No database selected.
Im using the include to bring the db connetion details, the db.php looks like this:
<?php
//skip the config file if somebody call it from the browser.
if (stristr($_SERVER['PHP_SELF'], "db.php")) {
Header("Location: ../index.html");
die();
}
define('SQL_USER', 'root');
define('SQL_PASS', '');
define('SQL_DB', 'dolphin');
// Create a link to the database server
$link = mysql_connect('localhost', SQL_USER, SQL_PASS);
if(!$link) :
die('Could not connect: ' . mysql_error());
endif;
// Select a database where our member tables are stored
$db = mysql_select_db(SQL_DB, $link);
if(!$db) :
die ('Can\'t connect to database : ' . mysql_error());
endif;
?>