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 does the expression exception::__tostring means?
Can you use php and javascript together?
List data types in PHP?
How to join multiple strings stored in an array into a single string?
What is difference between base_url and site_url?
What is the use of mysql_fetch_assoc in php?
What are the differences between require and include?
What is __ construct in php?
Can we extend multiple classes in php?
Can we learn php without html?
Is python better than php?
What are majic methords in php?
sort term descripttion form, report and uery
How to parse configuration file in php?
How to genrate report in wordpress cms