1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

Discussion in 'PHP & Perl' started by hirephp, May 9, 2012.

Tags:
  1. hirephp

    hirephp Newbie

    Joined:
    Jun 9, 2011
    Messages:
    6
    Likes Received:
    0
    Home Page:
    What is the command to create MySQL database using PHP and MySWQ?
     
  2. reichstagsuperstar

    reichstagsuperstar Registered Member

    Joined:
    Jul 8, 2011
    Messages:
    54
    Likes Received:
    11
    Location:
    UK
    Here you go:

    Code:
    <?php
    
    mysql_create_db('name_of_database');
    
    ?>