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
How to convert one date format into another in php?
Tell me what is pear?
What is the difference between htmlentities and htmlspecialchars in php?
If we login more than one browser windows at the same time with same user and after that we close one window, then is the session is exist to other windows or not? And if yes then why? If no then why?
Define soundex()?
What is meant by pear in php? What is the purpose of it?
What is session_start () in php?
How to check your php installation?
Is php an api?
What is is_null() in php?
Which function is used to strip whitespace?
What is the main difference between require() and require_once()?
What is super () python?
What are the characteristics of php?
Tell me what is the difference between the functions strstr() and stristr()?