1
Error?
Postat av ThLoser den 19 Mars 2008, 02:35
6 kommentarer · 36 träffar
Någon som kan säga vad det är för fel på denna
mysql_query("DELETE * FROM gastbok WHERE userID2='".$gb['user ID2']."' AND userID1='".$gb['user ID1']."' AND id='".$_GET['id' ;]."' AND `read` = 0") or die(mysql_error());
echo "alert('Inlägget borttaget!'); self.location.href='index .php?p=gb&id=".$id2."';&l t;/script>";
}
Jag får 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 '* FROM gastbok WHERE userID2='17' AND userID1='10' AND id='15' AND `read` = 0' at line 1
mysql_query("DELETE * FROM gastbok WHERE userID2='".$gb['user ID2']."' AND userID1='".$gb['user ID1']."' AND id='".$_GET['id' ;]."' AND `read` = 0") or die(mysql_error());
echo "alert('Inlägget borttaget!'); self.location.href='index .php?p=gb&id=".$id2."';&l t;/script>";
}
Jag får 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 '* FROM gastbok WHERE userID2='17' AND userID1='10' AND id='15' AND `read` = 0' at line 1






