PHP Loop
Posted: Thu Jun 22, 2006 7:24 am
Hello people;
Anyone have any idea how to tackle this problem (quite new to all this):
I have a database with some dates in it, with whether they are free or not in boolean formate i.e. 1 for free and 0 for not free.
eg.
12/12/2006 1
13/12/2006 1
14/12/2006 0
15/12/2006 1
I want to be able to enter two dates, and loop from date 1 through to date 2 checking all the dates in between and see if they all = 1! and if not flag it to the user as being 0 and not free.
Any ideas would be helpful!
Thanks
Anyone have any idea how to tackle this problem (quite new to all this):
I have a database with some dates in it, with whether they are free or not in boolean formate i.e. 1 for free and 0 for not free.
eg.
12/12/2006 1
13/12/2006 1
14/12/2006 0
15/12/2006 1
I want to be able to enter two dates, and loop from date 1 through to date 2 checking all the dates in between and see if they all = 1! and if not flag it to the user as being 0 and not free.
Any ideas would be helpful!
Thanks