Welcome Guest, Not a member yet? Register   Sign In
consecutive days resultset from db
#3

[eluser]Colin Williams[/eluser]
One query will suffice. Nothing looks wrong with your result. You just need to loop through the dates, not the result set. So, for each day, loop through result and show results for the current day, or show an "empty" message for days without records.

That might be what w3bm was saying, but it sounded like he was saying to run a query for each date, which would be overkill.


Messages In This Thread
consecutive days resultset from db - by El Forum - 02-02-2009, 07:57 AM
consecutive days resultset from db - by El Forum - 02-02-2009, 06:58 PM
consecutive days resultset from db - by El Forum - 02-02-2009, 09:31 PM
consecutive days resultset from db - by El Forum - 02-03-2009, 05:25 AM
consecutive days resultset from db - by El Forum - 02-03-2009, 05:56 AM
consecutive days resultset from db - by El Forum - 02-03-2009, 07:41 AM
consecutive days resultset from db - by El Forum - 02-03-2009, 10:03 AM
consecutive days resultset from db - by El Forum - 02-03-2009, 10:23 AM



Theme © iAndrew 2016 - Forum software by © MyBB