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 session data?
Does session expire on closing browser?
What is http php?
How do you put a space in html?
What are the environmental variables?
What is form action php?
What is the advantage of runtime polymorphism?
What is the difference between htmlentities and htmlspecialchars in php?
Are react hooks stable?
Tell me which programming language does php resemble to?
How to reset/destroy a cookie?
Do you know what is the difference between the include() and require() functions?