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 |
hai, friend i srinu i had completed my graduation in 2004. now i am fineshed PHP course .may i get any oppartunity on php progr pls sugg me . thank u
What is the super method?
I created a new joomla module for administrator. when am going to install this, it is going "joomla/modules" path. but, i want to install this in the "joomla/administration/modules" path.
How do I stop php artisan serve in windows?
What are the four scalar types of php?
Is array function in php?
Tell me how can we check the value of a given variable is alphanumeric?
How do you pass a variable by value in php?
What is php? Why it is used?
How variables are passed through arguments?
what is mean php ? is it designingtool or language? how ill create website using by php?
What is the difference between single quoted string and double quoted string?