Re: invert
| From: | Jordan Miller | Date: | Thu, 25 Aug 2005 19:27:44 +0000 |
| Subject: | Re: invert | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-221377@lists.php.net to get a copy of this message | ||
if you are using mysql, just put the "DESC" (descending) directive at the end of your sql statement (default is no "DESC" directive, meaning ascending). most recent records will be returned first.
Jordan
On Aug 25, 2005, at 2:21 PM, George B wrote:
I have written a shoutbox, and it works great, but I am wondering... When a user posts a shout it goes below the first shout. Like the auto_increment puts the ID up higher. I need it to go about the first shout, so like the auto_increment would invert. Someone told me this is possible through PHP. Is that true? and if so how do you do it? --PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php