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
Explain Type juggling?
What is php sequence?
What is the meaning of "enctype= multipart/form-data" ?
How do you sort an array in php?
Is php object oriented?
Tell me what is use of in_array() function in php?
What are examples of independent and dependent variables?
Is ruby on rails php?
What is the use of print_r function in php?
Explain about switch statement in PHP?
Write a query to find the 2nd highest salary of an employee from the employee table?
What is php array function?
Is php easier than node?
Tell me what are the encryption techniques in php?
What are php errors?