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
How is it possible to know the number of rows returned in result set?
How to pass an argument to a function?
How can we determine whether a php variable is an instantiated object of a certain class?
Will php die?
Why do we use htaccess
What are psrs? Choose 1 and briefly describe it?
What is the difference between file_get_contents() and file_put_contents() in php?
Are there regular expressions in php?
The left association operator % is used in PHP for?
What is empty () in php?
Which cryptographic functions in php returns the longest hash value?
Why json is used in php?
Tell us how to create an array of a group of items inside an html form?
How would you open a directory for reading in php?
What is full form of php? Who is the father or inventor of php?