Page 1 of 1

How to INSERT entry from top to bottom?

Posted: Sun Nov 29, 2009 12:12 pm
by shou0630
i got:
peter
john
now i insert an entry,it looks like
peter
john
tom
I want it like
tom
peter
john
Every time i insert an entry it goes to top not bottom or make it displayed that way

Re: How to INSERT entry from top to bottom?

Posted: Sun Nov 29, 2009 12:32 pm
by AlanG
shou0630 wrote:I want the last entry on top,OR displayed as last entry on top,how i do that?
Hmm secretive... lol Any chance of more information? Where are you looking to display the entries? Is this in a database manager (such as PHPMyAdmin) or are you fetching the data to the screen. Also, what determines the last entry? Is there a timestamp or id?

You should take a look at this comparison of array sorting functions.