PHP WITH MYSQL DATABASE CREATION - PHP LESSON 19 STUDENTSBLOG100


In the last lesson we have seen, How to connect php with Mysql?.Here you are going to study, how to create a database in MySql using php. The database creating query syntax is same as SQL query.

Syntax For Database Creation:
create database database_name;

Example in Php:
$sql = "create database DB_1"; // Here sql is variable name and DB_1 is database name

Example Program:

Note : In MySql, we can create Database using front end tools too.. For that goto --> http://localhost/phpmyadmin/  --> Databases

Output:
Goto --> http://localhost/phpmyadmin
PHP WITH MYSQL DATABASE CREATION
PHP WITH MYSQL DATABASE CREATION

Lesson 18 Previous | Main Page | Next Lesson 20

Previous
Next Post »