You are here: multiple nested queries? « Smarty Templates Posts « IT news, forums, messages
multiple nested queries?

Posted by Amanda Hemmerich on 10/01/74 11:23

Hello! I'm pretty new to PHP and Smarty.

I am trying to build a dynamic navigation bar using mysql, PHP, and
smarty. I need to get the name and id of each menu item and then for
each item, query a different table and get the sub-items associated with
them.

My normal way of using queries is to query the database and loop through
the result with a smarty section and display the results. Is there a
way I can loop through the results and build another query and then loop
through THOSE results, too?

Thanks,
Amanda

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация