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 does == mean in php?
Tell me in php, objects are they passed by value or by reference?
What are the new features available in php 7?
What are the different components used in php for formatting?
What are the different tables(engine) present in mysql, which one is default?
Is echo a function in php?
How can cross site request forgery csrf be prevented?
Tell me how do you execute a php script from the command line?
What type of language is php?
Write a program in php to find the occurrence of a word in a string?
Explain some most commonly use string functions in php?
m new to xampp i want to configure file server in xampp... is it possible ??? if so help me....