![]() |
Calling a template in a while
I'd of written a more descriptive title if I knew what was wrong.
I'm trying to list information from a table and to do it I first printed a template then underneath that in the plugin I wrote. PHP Code:
I added eval for the template, and put $cats in the first printed template for where I wanted these results to go and they don't show up and I don't get why. Its probably something stupid I'm overlooking. Any ideas? EDIT--Oh and I know its not the template name, I've checked that around 4 times now. |
Where is your query?
|
Its above.
Heres the whole plugin PHP Code:
|
How are you outputting $cats? echo? Using it in a template that is further down the code using print_output function? Your current code is outputting nothing.
|
I'm outputting it through the extra_categories template using $cats to compile the list.
|
Try moving this after the while
PHP Code:
|
Quote:
|
print_output() end the script execution, hence nothing after that line will be run. :)
|
All times are GMT. The time now is 04:19 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|