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

Author Topic: What is the command to create MySQL database using PHP and MySWQ?  (Read 2824 times)

Offline hirephpTopic starter

  • Trade Count: (0)
  • Semi-Newbie
  • *
  • Thank You 0
  • Posts: 10
  • Karma: 1
  • Gender: Male
  • Hirephp
    • Hire PHP Developer, Hire PHP Programmer, Hire PHP Web Developer, PHP Framework Solutions
 What is the command to create MySQL database using PHP and MySWQ?
Hire PHP Coder [nofollow] | Hire PHP Developer [nofollow]


Offline Adwan Paul

  • Trade Count: (0)
  • Newbie
  • *
  • Thank You 0
  • Posts: 2
  • Karma: 1
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]

Offline tanuja19

  • Trade Count: (0)
  • Semi-Newbie
  • *
  • Thank You 0
  • Posts: 19
  • Karma: -1
    • Asta Institute
mysql> create database [databasename];
Asta Institute [nofollow]  |  Bank Clerk exam prepration [nofollow]

Offline thelazytrader

  • Trade Count: (0)
  • Jr. Member
  • **
  • Thank You 0
  • Posts: 92
  • Karma: 0
  • Gender: Male
  • The Lazy Trader
    • The Lazy Trader
Type this syntax in your code file.
<?php echo mysql_create_db("Database_name");?>

Offline sunilkumar

  • Trade Count: (0)
  • Newbie
  • *
  • Thank You 0
  • Posts: 2
  • Karma: 0
    • Manali Tourism & Tour Packages
create database <database_name>;
and select the query and press f5 key to execute the query.


 

Related Topics

  Subject / Started by Replies Last post
4 Replies
3327 Views
Last post 05-14-2012, 07:06:42
by Lechlak
6 Replies
3483 Views
Last post 11-28-2015, 05:44:38
by Dewlance
1 Replies
1538 Views
Last post 04-27-2014, 23:24:03
by abhi_garg
0 Replies
698 Views
Last post 12-23-2015, 04:45:59
by chinmay.sahoo
1 Replies
643 Views
Last post 04-20-2016, 03:31:08
by TomClarke