Code:
SELECT CA.caid, CA.name as caname, CA.info, DAYOFMONTH(CA.date) as day, MONTH(CA.date) as month, YEAR(CA.date) as year, CA.date FROM wn_calender CA WHERE (CA.eid = 0 OR CA.eid = ) AND ( (CA.date >= NOW()) OR (DAYOFMONTH(CA.date) = 04 AND MONTH(CA.date) = 03 AND YEAR(CA.date) = 2004 AND HOUR(CA.date) = 00 )) ORDER BY CA.date ASC
[archiv] ERROR 1064: 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 ')
AND ( (CA.date >= NOW()) OR (DAYOFMONTH(CA.date) = 04
AND M
AND ( (CA.date >= NOW()) OR (DAYOFMONTH(CA.date) = 04
AND M
Kommentar