Skip to main content
Inspiring
July 14, 2008
Question

Nested loops

  • July 14, 2008
  • 1 reply
  • 390 views
I having trouble specifying field names, using nested loops, I'd like to check the option in the select list as selected if the location matches. However it keeps defaulting to the first result, can anyone help?

Thankyou




    This topic has been closed for replies.

    1 reply

    Inspiring
    July 14, 2008
    More details might help us understand more on the problem on your approach. Like do you expect to return more than 1 record in your query "getsession" and also in "courseLocation"? 'Coz if they both do, then one option value could be printed as many times as the number of records your getsession returns which will cause comparison problems just like you did. Another thing could be that maybe your "locationID" could have different set of values from your "getsession.sessionvenue". Can't really exactly tell from your code. More details would help.