Deleting Records via SQL Query in PHP
The DELETE command can be used to
delete records from a table. Its syntax is similar to
what you have learned before:
<?php
$query = "DELETE FROM table WHERE condition";
?>
Delete the user with id equal to 7.
Delete all users whose age is 23
years.
Delete all users.