PHP prob
I just learned the basics of PHP and I decided to make my first script to get the hang of it. The script is designed make updating the news section on my site easier. I have a submit form that makes a variable = to all of the information (date, author, ect.) of that post and adds it to an array called postarray. When I add a post to the array it gives it the next available value instead of the 0 I want it to be given (In other words I want the newest posts to print first, then the older posts in that order).I also have another problem. I want the array to delete all posts after... say the 20th post. How can I tell the array to delete all posts after they are given a value greater than 19?
Or am I just going about all this wrong? Im sure there are plenty of scripts like this but its not fun to copy paste other peoples scripts =(. Thanks!