Welcome to WebmasterWorld Guest from 18.104.22.168
I have a my sql DB that has a kind of diary in it.
I use a timestamp in this format 0000-00-00 00:00:00
OK this is what I want to do. Go through each day of the month and if there is an entry in the database for that day do something if not dont do anything.
It's just how I loop through the days of each month and stuff.
Maybe its the creation of the dates i'm stuck with.
Any help would be greatly appreciated!
joined:Nov 12, 2005
$query = "SELECT * FROM table WHERE MONTH(timestamp) = '10'";
This should select all the rows where the month is '10'
Good luck! :)