![]() |
Array Issues
I've made a really simple shoutbox, so that administrators on my forum can put up important messages for all the members to see, just in case they don't browse the forums. This is the code I'm using to pull the posts from my database:
PHP Code:
|
Use query_read() instead of query_first() and alter the SQL statement to get all "shouts" you want (like the last 3 or whatever).
Then loop through the result with fetch_array() to get the returned rows and post the messages one by one. |
PHP Code:
Should I try this instead: PHP Code:
|
Try something like this:
PHP Code:
|
Thanks SirAdrian -- all working fine, it's much appreciated.
|
All times are GMT. The time now is 11:50 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:
|