0 votes
in PHP by
How can we create a database using PHP and MySQL in PHP?

1 Answer

0 votes
by

The necessary steps to create a MySQL database using PHP are:

Establish a connection to MySQL server from your PHP script.

If the connection is successful, write a SQL query to create a database and store it in a string variable.

Execute the query.

Related questions

0 votes
asked Jun 22, 2019 in PHP by SakshiSharma
0 votes
asked Jun 22, 2019 in PHP by SakshiSharma
...