Sr. PHP Programmer Question:

How will you create a MySql database using PHP?

Senior PHP Programmer Interview Question
Senior PHP Programmer Interview Question

Answer:

PHP uses mysql_query function to create a MySQL database. This function takes two parameters and returns TRUE on success or FALSE on failure.

bool mysql_query( sql, connection );


Previous QuestionNext Question
How to create a mysql connection?Write down the code for save an uploaded file in php?