PHP interesse |
|
werkt dat ook als het gewoon met cijfers is? Nja zal eens proberen! bedankt alvast!
Edit:
mysql_query("SELECT id,titel FROM `cms_nieuws` ORDER BY `id` WHERE van_datum < ".mktime(0,0,0,date("m"),date("d"),date("Y"))." AND tot_datum > ".mktime(0,0,0,date("m"),date("d"),date("Y"))." DESC") or die(mysql_error());
mysql_query("SELECT id,titel FROM `cms_nieuws` ORDER BY `id` WHERE van_datum < ".mktime(0,0,0,date("m"),date("d"),date("Y"))." AND tot_datum > ".mktime(0,0,0,date("m"),date("d"),date("Y"))." DESC") or die(mysql_error());
is dat goed?
Krijg nameljik een foutmelding:
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 van_datum < 1231110000 AND tot_datum > 1231110000 DESC' at line 1
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 van_datum < 1231110000 AND tot_datum > 1231110000 DESC' at line 1
|