in my table I have a field with a date. Now I only want to get the records fromt the last 7 days :
$sql = ("SELECT * FROM tbl_images WHERE datum > datesub(now(),7)");
but I think mysql doesn't know what datesub is... is it possible to do with a php syntax?
The One And Only KryptoS
$sql = ("SELECT * FROM tbl_images WHERE datum > datesub(now(),7)");
but I think mysql doesn't know what datesub is... is it possible to do with a php syntax?
The One And Only KryptoS