I tried that. But I cant get it to work out well.
This is what i want:
First, I want to get all occupied timestamps for the date that is stored in $cDate, for an example we say that $cDate = 2010-02-11.
I fetch's the table where column date = $cDate and i get 3 matching rows, which is:
2010-02-11 12:00
2010-02-11 16:00
2010-02-11 22:00
Then I have these possible time stamps everyday:
00:00, 02:00, 04:00, 06:00, 08:00, 10:00, 12:00, 14:00, 16:00, 18:00, 20:00, 22:00
But, 3 of 12 time stamps is occupied, and I just want to print the time stamps that is not occupied which is:
00:00, 02:00, 04:00, 06:00, 08:00, 10:00, 14:00, 18:00, 20:00
Any idea?