Database is not connect
Posted: Wed Jul 16, 2014 2:19 am
Hello,
Im unable to connect database please anybody help me
<?php
$host = "localhost"; // db host
$user = "username"; // db username
$pass = "password"; // db password
$db = "dbname"; // db name
$conn = mysql_connect("$host", "$user", "$pass", "$db") ;
mysql_select_db($db);
?>
i saved this on config.php and called this file in another file in below format
<?php
include("config.php");
?>
Please any body help me.
Regards,
Saleem
Im unable to connect database please anybody help me
<?php
$host = "localhost"; // db host
$user = "username"; // db username
$pass = "password"; // db password
$db = "dbname"; // db name
$conn = mysql_connect("$host", "$user", "$pass", "$db") ;
mysql_select_db($db);
?>
i saved this on config.php and called this file in another file in below format
<?php
include("config.php");
?>
Please any body help me.
Regards,
Saleem