I run the php code on wamp server it runs fine..
but when i tried to run on my webhosting..
i am having an error establishing connecition.
here is the code
$dbhost = "localhost";
$dbuser = "suntafun_user";
$dbpass = "******";
$dbname = "suntafun_first";
$conn = mysql_connect($dbhost, $dbuser, $dbpass) or die ('Error connecting to mysql');
mysql_select_db($dbname) or die ('Unable to select database!');
i think the problem is in db host.. anyone please help
Do you have a phpMyAdmin on the control panel? Did you try with that?
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)