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 php and its uses?
What is meant by nl2br()?
4 Answers Rushmore Consultancy,
Which function is used to read a single character from a file in PHP.
How is it possible to return a value from a function?
Explain some of the php string functions?
What is class extend in php?
What is scope of variable in php?
How to terminate the execution of a script in PHP?
How to replace a substring in a given string in php?
What is the major php security hole? How to avoid?
What is php resource type?
Can I run php without xampp?