Page 1 of 1

New post / old posting sorting

Posted: Sat Apr 16, 2005 1:23 pm
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

Posted: Sat Apr 16, 2005 2:08 pm
by feyd
new posts first and last :?: :?

Posted: Sat Apr 16, 2005 2:22 pm
by shiznatix
post some code and then restate your problem

Posted: Sat Apr 16, 2005 2:40 pm
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

Posted: Sat Apr 16, 2005 2:50 pm
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)