![]() |
Query ends after 1 loop
What about this code could cause only one row to be displayed?
I have tried this with $blogs = $db->query_read("SELECT * FROM " . TABLE_PREFIX . "blog"); and there are over 1000 entries to display, so I am pretty sure the query is fine. I tried deleting the avatar code just to see if it helped, but when I go to save the plugin, I get a 301 error. So i can not even get rid of that code to test. PHP Code:
HTML Code:
<li class="forumbit_nopost L2" id="catblogs"> |
LIMIT 0, 3 is only going to give you the first 3 results from the database. And the end } should be after the while loop (before //Avatar Display), shouldn't it?
|
3 results is what I wanted, and as for the last }. Doing that would just cause the whole thing to stop working.
Either way, I figured out the problem. I used $blog_bits to create the template and register the variables, then I also used the same to store the render of the template. You can not do that. So I simply made PHP Code:
Thanks for your input though Boofo. |
Glad you got it. I still don't see why you need the Avatar Display and the template render in the while loop. But that doesn't matter now that you have it working.
|
All times are GMT. The time now is 12:18 AM. |
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:
|