Get latest post

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Trygve
Forum Newbie
Posts: 2
Joined: Sun Sep 15, 2002 8:46 am

Get latest post

Post by Trygve »

Is it possible to use php to get the latest threads in a forum?
and show them like this, on a web page:

Latest post in forum:
*post1
*post2
*post3
User avatar
hob_goblin
Forum Regular
Posts: 978
Joined: Sun Apr 28, 2002 9:53 pm
Contact:

Post by hob_goblin »

yes, using regular expressions and the filesystem functions.

I personally, would just download a hack since there are already alot out there.

Try looking around at http://www.phpbbhacks.com if it's a phpbb
Trygve
Forum Newbie
Posts: 2
Joined: Sun Sep 15, 2002 8:46 am

Post by Trygve »

ITs a vbbuletin board.
User avatar
hob_goblin
Forum Regular
Posts: 978
Joined: Sun Apr 28, 2002 9:53 pm
Contact:

Post by hob_goblin »

google it, 'vbulletin hacks'
MattF
Forum Contributor
Posts: 225
Joined: Sun May 19, 2002 9:58 am
Location: Sussex, UK

Post by MattF »

or you could do a simple DB query "SELECT * FROM posts ORDER BY timestamp DESC LIMIT 10"
Post Reply