![]() |
Ugh, Query in a while statement
At first it hurt to put a query in a while statement, then it hurt to rely on my query for organization. Now it hurts because I realized it doesn't work. It works with one category, but when you add a different category it blows up Any category below the first one doesn't get the list items.
I figure it's an error in the HTML, but I still don't like the query in the while statement. Can I get some help? *!* PHP Code:
|
It looks like you will need to reset the record pointer for $sidePanelPages like so:
php Code:
as you may want to start from the beginning of that resultset looking for matching categories, and if the pointer is at the end, it may error out. |
Okay, but how would I get that query outside of that demonic while statement? :(
edit: It works! I have no idea how it did, but it did. .. I need to read up more on RDMS functions. |
| All times are GMT. The time now is 05:53 AM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0