Hi,
I have a table that contains posts and each post has a datetime field.
Im trying to work out how I can show entries from today, this week and this month so I can have a link that shows all posts from today or this month etc.
Any one know how I can do this ? My current piece of code that pulls the data from the db looks like this :
$texts= mysql_query("SELECT * FROM submittedtexts Order by id DESC LIMIT " . (($page - 1) * 6) . ", 6");
I want to add a bit that acts like : WHERE date = today
Hope that makes sense, Im a bit of a newbie
Thanks in advance,
Scott