Answer Posted / vivek mohan singh
$dbhost = "localhost"; // database hostname
$dbuser = "root"; // database username
$dbpassword = ""; // database password
$dbname = ""; // database name
//database connection
$link=mysql_connect($dbhost,$dbuser,$dbpassword) or die ('I
cannot connect to the database because: ' . mysql_error());
mysql_select_db($dbname ,$link);
Is This Answer Correct ? | 6 Yes | 5 No |
Post New Answer View All Answers
What is a base url?
How does php work with apache?
Explain what is the use of "echo" in php?
What is Mcrypt used for?
What is Apache's configuration file typically called?
What is whitespace in html?
Is strcmp case sensitive?
What is php beginner?
How to set a value in session? How to remove data from a session?
What is the use of mysql_fetch_assoc in php?
Is null empty php?
What is singleton pattern in php?
What is use of count() function in php?
What does session start do in php?
What sized websites have you worked on in the past?