Also, (this one is not my mistake) you removed the execute statement from that same code block.
So:
try
{
$stmt = $pdo->prepare($sql);
}
catch( PDOException $e)
{
die($e->getMessage());
}
Should be:
try
{
$stmt = $pdo->prepare($sql);
$stmt->execute(array($pdo->quote($id)));
}
catch( PDOException $e)
{
die($e->getMessage());
}
__________________
All cookies cleared!
|