Hey everyone, my names Nick, or vahn or whatever you'd like.
Im currently writing a some what simple script for my freind's website.
Its called a shoutbox, and for those of you who havnt heard of them, they are like small message boards. They are for short comments that are posted on the main page of a website.
For a working example of a shout box, check out http://www.wastedyouth.org
the shoutbox is called 'youth yak' on the right side at the bottom.
My problem is, I want to limit the number of posts to be shown at a time. Instead of having a page full of 60 shouts. I cant figure out how to make the script check to see if there are more than the set amount of shouts. And if their are , to delelte the neccessary amount of old shouts.
Another problem is, i am using RSORT(reverse sort) function, to arrange the shouts from top to bottom. It was working fine, until recently, now it arrangers them in alphabetical order, then reverses the list. Any help?
Here is a link to a .txt file so you can view the source code. (sorry if its sloppy, i need to get in the habbit of adding comments).
And here is a link to the beta version of the working source code I am working on.
Please let me know what you think, and any comments you might have, thanks!