For security reasons I would like to change this working mySQL request...
$id = $_POST['id'];
$value = $_POST['value'];
$pdo = $db->prepare("DELETE FROM $value WHERE id = ?;");
$pdo->execute(array($id));
...into...
$pdo = $db->prepare("DELETE FROM ? WHERE id = ?;");
$pdo->execute(array($value,$id));
But I get an error message:
Syntax error or access violation: You have an error in your SQL syntax;