![]() |
Last new posts
i want to show the last 20 posts made on the forum on a seperate page does anyone have an idea on how to do this ??
|
I think it will be something like this.
PHP Code:
|
u nearly there m8
i get a Warning: Cannot modify header information - headers already sent by (output started then it shows one new post underneath it |
ok i took out the error reporting bit
and no error now but it only shows one post still |
Try
PHP Code:
|
same m8
no error but only one latest thread/post is showing |
$DB_site->query_first() will only return one result, no matter now may rows you tell it to fetch from the DB. You need to use $DB_site->query() and use $DB_site->fetch_array() in a while loop to get more than one item from the DB.
|
Quote:
It should be this PHP Code:
|
works perfect :)
can i use <smallfont> in a php file to make text a lot smaller ? also thanks to assassingod and NTLDR |
sorry one final question
i knwo u helped enough but the above is fine but it only gets new threads dont it,how can i do the exact same but for posts. |
All times are GMT. The time now is 02:42 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:
|