hi
try his
<?php
$host = "localhost"; // Host name
$dbuname = "pradeep"; // DB user name
$dbpwd = "pass"; // Password DB
$dbname = "personal"; // Database name
// Connnect to the DB
$connection = mysql_connect($host,$dbuname,$dbpwd) or die($error_connect);
// Select the DB
mysql_select_db($dbname) or die($error_select);
?>
Save this file as config.php and include it in all your files which need the connection string
<?php
// Any page.php
include "config.php";
?>
hope this helps
Pradeep