I am unable to connect to my database. I have put the following code in a html box in my form page but it is not working. I am getting the error message HTTP 404. The code that I am using to connect to my database is as follows;
<?php
$db_host= "localhost";
$db_username = "YYYY_XXXXX";//where YYYY is my CP username and XXXXX is my database username
$db_password = "ZZZZZ"
$dbname ="YYYY_StudyKitchenData";
$conn = mysql_connect($db_host,$db_username,$db_password);
mysql_select_db($dbname);
close($conn);
?>
Please help!!
<?php
$db_host= "localhost";
$db_username = "YYYY_XXXXX";//where YYYY is my CP username and XXXXX is my database username
$db_password = "ZZZZZ"
$dbname ="YYYY_StudyKitchenData";
$conn = mysql_connect($db_host,$db_username,$db_password);
mysql_select_db($dbname);
close($conn);
?>
Please help!!
Comment