How do I display 2 individual values in a single array loop
Posted: Tue Nov 21, 2006 2:46 pm
I have a question about arrays and how to loop thru 'em.
I need to loop through a query where the loop needs to run 5 times, basically for 5 weeks in a month. Each time it checks to see if a date is between the 1st and 7th, then 8th to 14th, then 15th to 22nd , then 23rd to 29th and then 29th to whatever last date is. So how do i frame my array and use the foreach loop.
If it was just one value I am looping through i know how to do that, but how do i do it for 2 values in one cycle?
I need to loop through a query where the loop needs to run 5 times, basically for 5 weeks in a month. Each time it checks to see if a date is between the 1st and 7th, then 8th to 14th, then 15th to 22nd , then 23rd to 29th and then 29th to whatever last date is. So how do i frame my array and use the foreach loop.
If it was just one value I am looping through i know how to do that, but how do i do it for 2 values in one cycle?