View Single Post
  #1  
Old 06-27-2008, 08:18 AM
Skipper02 Skipper02 is offline
Sergeant
 
Join Date: Jun 2008
Posts: 25
Default MYSQL Connections

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!!
Reply With Quote