Diego,
Struggling with this one...BIG TIME!!
I still am having trouble trying to figure out how to pass the LIMIT value needed for my links.
I have everything working, but cannot get a week to show up together since there are more than one rows per day....
Can you provide some further input as to how to accomplish my NEXT PREV links having the proper values.....
Below is my SQL:
/===================================================/
/==Query and fetch array with the limit and offset==/
/===================================================/
$query = "select log2.rundate, DATE_FORMAT(log2.rundate, '%W, %M %d, %Y') as fdate, log.starttime, log.distance, log.runtime, log.runpace, log.course, log.shoes, log.workout_type, log.comments, log.weight, log.avghr from
log2 LEFT JOIN log ON log2.rundate = log.rundate
order by rundate, dayofweek";
And the limit I am using:
/==========================================/
/==Append the limit and offset to the sql==/
/==========================================/
$query.=" limit $thisOffset, $recordLimit";
Now this $recordLimit is used elsewhere to determine # of pages in total and when to display Next Previous links.
For an example of my troubles you can see:
http://www.ndorfnz.com/weeklogdate.php?thisOffset=2142&lineIndex=2142
Even though I have 2 runs for Sunday, I want to be able to still display through Saturday...
Greatly appreciate any input or guidance you can provide!!!
Thanks.