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 make horizonatl menu and vertical menu responsive
How to get a total number of elements used in the array?
How can we encrypt and decrypt a data present in a mysql table using mysql?
Is php strongly typed?
What are the methods to submit form in php?
What is static in php?
Without using forms and hidden variables, how to send variables from a PHP script to another URL using POST method?
What is the use of strip_tags() method?
How to get the http request in php?
What are the different functions in sorting an array?
What are the differences between PHP3 and PHP4 and PHP5? what is the current stable version of PHP?
what server connected