Creating and Dropping Tables in Mysql Using PHP
Creating and Dropping Tables in Mysql Using PHP
DROPPING TABLES IN
MYSQL USING PHP
Introduction
Syntax:
sql
DROP TABLE table_name;
Purpose: Deletes the table and all its data.
Dropping a table removes it permanently, along with all its data.
Use the DROP TABLE SQL command within PHP to delete a table.
php
$sql = "DROP TABLE users";