Jump to content

archive

Members
  • Posts

    22
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by archive

  1. 6 minutes ago, Barand said:

    I didn't say is was right - it's just what was in the code I was condensing to illustrate the nested loops.

    Yeah, I wasn't trying to be clever, I wasn't sure if I'd missed something. I had intended to edit the post after clarification but I can't now, sorry.

  2. The page loads within a few seconds.

    A few seconds is probably a long time?

    $j is not used in your script and has no effect on any of the code following it which is why it hasn't been changed and why you haven't noticed, is this causing other problems though?

    As Barand points out, really you should look change the query which would allow you to arrange the results in descending order as well as joining all the queries together in one.

    Barand:

    for($j='2018';$j<=$maxdate;$j++) {

    Should that have been:

    for($j='2018';$j<=$maxdate;$j--) {

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.