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 the difference between for and foreach in php?
How are variables declared in php?
How to call php function in jquery?
What is difference between compile time and run time polymorphism?
What is php static function?
What is the tags in PHP is not a valid way to begin and end a PHP code block?
What is the difference between fopen() and fclose()?
Define soundex()?
What is the difference between characters 34 and x34?
Can we override magic methods in php?
What are the delimiters in php?
How does cookies work in php?