New post / old posting sorting

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
User avatar
pallarisari
Forum Newbie
Posts: 17
Joined: Sat Apr 16, 2005 12:52 pm

New post / old posting sorting

Post by pallarisari »

Hi all

I have a script currently running which which sorts posts in this format / new posts first / new posts last. Unfortuantely its not working as desired :cry:
Im currently posting data into a text file as mysql isn't available to me at present

Do anyone know of any good scripts that i can use?

thx
ari
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

new posts first and last :?: :?
User avatar
shiznatix
DevNet Master
Posts: 2745
Joined: Tue Dec 28, 2004 5:57 pm
Location: Tallinn, Estonia
Contact:

Post by shiznatix »

post some code and then restate your problem
User avatar
pallarisari
Forum Newbie
Posts: 17
Joined: Sat Apr 16, 2005 12:52 pm

Post by pallarisari »

Im basically looking for a script that will show the latest post at the top of the page when the link New post first is clicked. Currently all new posts and posted under an existing one.

sorry if i confused you in the last one
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

if you store the posts into an array, you can sort the data with sort() or usort() or any of the other sorting functions (there are many)
Post Reply