1
2
3$count=$dbo->prepare("DELETE FROM pdo_admin WHERE id=:id");
4$count->bindParam(":id",$id,PDO::PARAM_INT);
5$count->execute();
6
1To delete data from a table, you use the MySQL DELETE statement. The following illustrates the syntax of the DELETE statement:
2
3DELETE FROM table_name
4WHERE condition;
5In this statement:
6
7First, specify the table from which you delete data.
8Second, use a condition to specify which rows to delete in the WHERE clause. The DELETE statement will delete rows that match the condition,