What is the command to create MySQL database using PHP and MySWQ?

Started by hirephp, 05-09-2012, 00:10:24

Previous topic - Next topic

hirephpTopic starter

 What is the command to create MySQL database using PHP and MySWQ?
Hire PHP Coder [nofollow] | Hire PHP Developer [nofollow]
  •  


Adwan Paul

mysql_create_db("Database_name");
mysql_coonenct("host_name","user_name","password");
mysql_select_db("Database_name");

hope it help
newbielink:http://www.sendsweetsindia.com [nonactive]
  •  


tanuja19

Asta Institute [nofollow]  |  Bank Clerk exam prepration [nofollow]
  •  

thelazytrader

Type this syntax in your code file.
<?php echo mysql_create_db("Database_name");?>

sunilkumar

create database <database_name>;
and select the query and press f5 key to execute the query.
  •