I want to delete the record when the id column is equal to $id. Would this work?
$query = "DELETE FROM $TableName WHERE id=$id";
As a side i also want to set the number of rows that can be deleted to a limit of 1. I know i have to use limit but i am unsure on its parameters