What are the potential consequences of not including the "FROM" keyword in a MySQL delete query in PHP?

If the "FROM" keyword is not included in a MySQL delete query in PHP, the query will not target any specific table to delete data from, resulting in an error. To fix this issue, simply include the "FROM" keyword followed by the table name from which you want to delete data.

<?php
// Connect to the database
$mysqli = new mysqli("localhost", "username", "password", "database");

// Check connection
if ($mysqli->connect_error) {
    die("Connection failed: " . $mysqli->connect_error);
}

// Delete data from a specific table
$sql = "DELETE FROM table_name WHERE condition = value";

if ($mysqli->query($sql) === TRUE) {
    echo "Record deleted successfully";
} else {
    echo "Error deleting record: " . $mysqli->error;
}

// Close connection
$mysqli->close();
?>