A mistake in the code I posted.
around line 16:
try
{
$stmt = $db->prepare($sql);
}
catch( PDOException $e)
{
die($e-getMessage());
}
should be:
try
{
$stmt = $pdo->prepare($sql);
}
catch( PDOException $e)
{
die($e-getMessage());
}
.
__________________
All cookies cleared!
|