Mysql Drop Table Query

0

The DROP TABLE statement is used to drop an existing table in a database.

It is very easy to drop an existing MySQL table, but you need to be very careful while deleting any existing table because the data lost will not be recovered after deleting a table.

First you can need database connection in php

Code

$sql = "DROP TABLE users"; 
$result = mysqli_query($con,$sql);