79091285

Date: 2024-10-15 18:33:00
Score: 1
Natty:
Report link

DELETE query with named placeholders:

$id = $_REQUEST["id"];
$stmt = $conn->prepare("DELETE FROM mytableName WHERE id = :myID;");
$stmt->bindParam("myID",$id, PDO::PARAM_INT);
$stmt->execute();
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Ali Rad