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 |
Why does php start with variables?
Which programming language does php resemble?
Suppose your Zend engine supports the mode <? ?> Then how can u configure your PHP Zend engine to support <?PHP ?> mode ?
1 Answers Rushmore Consultancy,
What is the main difference between asp net and php?
Explain do you use composer? If yes, what benefits have you found in it?
How long should a session last?
Are php variables global?
Explain mail function in PHP with syntax?
Tips to optimize the php script..... Suggestion for exception handling in php...
How do you pass a variable by value in php?
Different between the var_dump() and print_r()?
What is the difference between "echo" and "print" in php?