How will you create a mysql database using php ?
Answers were Sorted based on User's Feedback
Answer / modi[achir communication]
<?php
$linkid = mysql_connect("servername", "username", "password");
mysql_query("CREATE DATABASE db");
mysql_select_db("db");
mysql_query("CREATE TABLE table (...)");
?>
| Is This Answer Correct ? | 5 Yes | 2 No |
Answer / mruttu
mysql_connect('servername','username','password');
| Is This Answer Correct ? | 5 Yes | 18 No |
What is asort php?
What is crypt () in php?
Is polymorphism inherited?
How to remove values saved in the current session?
How to Pass JSON Data in a URL using CURL in PHP?
Explain what is smarty?
How to turn on the session support?
What is default session time and path in PHP. How to change it?
Explain me what is the use of header() function in php?
What are the Merits and De-Merits of CURL library ?
How to convert a string to uppercase in php?
Tell me what are magic methods?