try this.. create a new page with JUST the info below
Code:
<?php
$dhost = "localhost"; //usually localhost, or ip
$dusername = "xxxx"; // database user
$dpassword = "xxxxxx"; // database pass
$ddatabase = "xxxxxxx"; // database name
$con = mysql_connect($dhost, $dusername, $dpassword) or die("Cannot Connect");
if(!mysql_select_db($ddatabase))
die("cant select database");
else
echo "--Connected";
?>
if that prints "cant select database" then your database name is incorrect
if that prints "Cannot Connect" then either the host/username/password is incorrect
if that prints "--Connected" then you are connected and there is something wrong with your queries
Bookmarks