I'm building a dashboard for my app and want to display several select elements from different tabels.
How can I pass multiple results to one page?
Thanks in advance.
Dashboard and multiple queries
3 posts
• Page 1 of 1
Dashboard and multiple queriesI'm building a dashboard for my app and want to display several select elements from different tabels.
How can I pass multiple results to one page? Thanks in advance.
Re: Dashboard and multiple queriesThe df_display() method takes 2 parameters. The first is an associative array of variables to be sent to the template for use.
e.g.
Then in my template :
This would render like:
Extrapolating from this, you can see that if you have multiple database results stored in arrays, you could just pass them both to the template context in their own variables.
Re: Dashboard and multiple queriesThanks! I knew it must be something simple like that. That is just what I needed.
![]() -james
3 posts
• Page 1 of 1
Who is onlineUsers browsing this forum: No registered users and 23 guests |