Nieuw lid |
|
Ik krijg bij dit stukje code steeds deze error:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE `temporderid`='45'' at line 1
weet iemand wat er fout is ?:S
<?php
$getTempCookie = mysql_fetch_assoc($getTempOrderId);
$temp = $getTempCookie['temporderid'];
setcookie("tempCookie", $temp, time()+3);
if(!isset($_COOKIE['tempCookie'])){
mysql_query("DELETE `temporder` WHERE `temporderid`= $temp") or die(mysql_error());
mysql_query("DELETE `temporderregel` WHERE `temporderid`= $temp") or die(mysql_error());
echo $temp;
}
?>
<?php $temp = $getTempCookie['temporderid']; if(!isset($_COOKIE['tempCookie'])){ } ?>
|