Follow this script and save with name config.inc (general file name).
$dbname = "php-learn";
$dbuser = "";
$dbpass = "";
$dbhname = "localhost";
$db = mysql_connect($dbhname, $dbuser, $dbpass) or die("unable to connect to database server");
mysql_select_db($dbname,$db) or die ("Unable to connect to SQL Server");
?>
No comments:
Post a Comment