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 do you get the Browser information?
What is session and Cokkies . How it works . tell some thing about Session_id()
1 Answers DVS, Net Solution, PVWEBCO,
How to create a mysql connection?
How to redirect a page in php?
What is full form of php? Who is the father or inventor of php?
Differentiate echo vs. Print statement.
Which function can be used to delete a file?
What is include in php?
What is a model in php?
Tell me what does the scope of variables means?
How does the identity operator === compare two values?
What is an example of a variable?