I'm not quite sure what you are trying to accomplish - but it sounds
like you have 2 result sets from the database and you want to show
values from both?

If so, you can always run two seperate loops and concatenate the
values into strings and then display the final string with what you
want.  If that's the case, I'm not quite sure what you are why you are
nesting two loops then?

Otherwise, if you want all the data from both record sets in one row,
I would do a SQL JOIN on the data.  That way you only need one loop
and when you loop, each row will have the data from both sets.

If you can clarify your problem, I can try to help to see what you are
trying to do.

On Oct 3, 10:21 pm, Andrew Evans <randra...@gmail.com> wrote:
> I am trying to use two database values returned in my function
>
> If I use two loops (one inside another) it repeats itself for a single item
> for how many items are in the database, I think its cause of the two loops
>
> So I am trying to combine the loops into one
>
> {{for (stuff, products) in (userstuff, product):}}
>
> But I am unsure how to do this
>
> Any ideas
>
> Or is there anyway to use the values in the view with out using a for loop
> and looping in general that may be best
>
> *cheers

Reply via email to