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 |
How to protect special characters in query string?
How to download and install php for windows?
What are some of the advanced features of php?
what are the rules to be followed at the time of declaring a variable?,what is the purpose of var_dump()function in php,syntax of ternary operator()in php,difference between drop a table and truncate a table...
Does php need html?
How to change the principal password?
Write syntax to open a file in php?
What is the difference between for and foreach?
What is c++ polymorphism?
How can we submit from without a submit button?
Why is php used?
Do you know how to enable error reporting in php?