$sql = "SELECT * FROM myTable WHERE id = :id"; $stmt = $conn->prepare($sql); $stmt->execute([":id"=>$id]);
$sql = "SELECT * FROM myTable WHERE id = ?"; $stmt = $conn->prepare($sql); $stmt->execute([$id]);