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 compare two strings with comparison operators in php?
How to change the principal password?
Can you extend a final defined class?
Can I use php in visual studio?
What is the phpstorm?
How do you run a php script from the command line?
how to maintained the session from one page to another page based on the url and then entered into the first page is logging into instead of secondpage it goes to the another url.ie first login session togoes to the one url and next login session it goes to another url how is it possible in php please give me answer in that question
How can I load data from a text file into a table?
Explain me what are the main error types in php and how do they differ?
How to restrict the number of users login ? For ex:- if the allowed login is 10, for 11th user, the application should restrict them from login.
What is the major php security hole? How to avoid?
What is member function?