Re: newest entry in db
| From: | CHAILLAN Nicolas | Date: | Sun, 01 Sep 2002 00:00:58 +0000 |
| Subject: | Re: newest entry in db | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-114795@lists.php.net to get a copy of this message | ||
Hi,
You should do a select into your db, order them by date DESC then you get
with mysql_fetch_row the first row ie $row[O].
--
Merci de nous avoir choisi. - Thanks you for your choice.
Nicos - CHAILLAN Nicolas
nicos@worldakt.com
nicos@php.net
www.GroupAKT.com - Hébergement Group.
www.WorldAKT.com - Hébergement de sites Internet
"Victor" <victor@argilent.com> a écrit dans le message de news:
000101c2510b$0282eca0$a3a96518@jumpy...
> How can I use php to get the newest entry from mysql database? Ie, if I
> make a timestamp and then I want to retrieve the last timestamp I made
> how do I go about doing it? Any php or mysql documentation?
>
> - Victor > www.argilent.com
>
>
> ______________________________________________________________________
> Post your ad for free now! http://personals.yahoo.ca