Answer Posted / ravi
$db = mysql_connect('localhost','username','password');
mysql_select_db("databasename", $db);
if (!$db)
{
die('Could not connect: ' . mysql_error());
}
$abc=mysql_query("write your query");
| Is This Answer Correct ? | 3 Yes | 9 No |
Post New Answer View All Answers
When a conditional statement is ended with an endif?
What is php resource type?
How to read a file in binary mode?
What is strstr php?
Tell me how to set a page as a home page in a php based site?
Do you know what is the difference between the include() and require() functions?
Explain the casts allowed in PHP?
What is the best php version for wordpress?
What is the use of curl()?
Tell me how to create a session? How to set a value in session? How to remove data from a session?
What is a closure in php?
Can you use php and javascript together?
What is difference between require_once(), require(), include()?
Tell me what is the definition of a session?
How to submit form without a submit button.