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
Write a program in php to reverse a number?
How to select a database?
Which is used to maintain the value of a variable over different pages?
How to get ip address of a server in php?
How to open a file in php?
How to enable error reporting in php?
What is difference between static and constant?
How to delete an element from an array?
Can you explain, when to use if-else if-else over switch statements?
What are the 5 types of variables?
What is php addslashes?
how can i develop forum code? any one pleale help me on this question
What library is used for pdf in php?
What is the use of Php variables?
What does the unset() function mean?