http://wfoster.co.uk/talk.php
Is it because it cannot connect to the database? I have a mySQL DB, not sure if my sql.php file has the right information in? This is my sql.php file:
Is it correct or how can I find out all my information for it? (Yes, I'm new to coding).
Thanks
Is it because it cannot connect to the database? I have a mySQL DB, not sure if my sql.php file has the right information in? This is my sql.php file:
Code:
<?
$mysql_host = "localhost";
$mysql_database = "web231-wfoster";
$mysql_user = "web231-wfoster";
$mysql_password = "************";
$MyDB = "web231-wfoster";
$dieMysqlMessage = 'Could not connect to database.<br />';
if(!mysql_connect($MySqlhostname, $MySqlusername, $MySqlpassword, $MyDB))
{
die($dieMysqlMessage . mysql_error());
}
$con = mysql_connect($MySqhostname, $MySqlusername, $MySqlpassword);
mysql_select_db($MyDB, $con);
?>
Is it correct or how can I find out all my information for it? (Yes, I'm new to coding).
Thanks