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<?php
  $query = "DELETE FROM table WHERE condition";
?>
Задание 1

Delete the user with id equal to 7.

Задание 2

Delete all users whose age is 23 years.

Задание 3

Delete all users.