Re: time stamp

From: Date: Wed, 28 Aug 2002 21:39:20 +0000
Subject: Re: time stamp
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-114425@lists.php.net to get a copy of this message
In article <5.1.0.14.2.20020827191949.03bc3020@vespro.com>, steve@vespro.com says... > I am using PHP with MySQL and have a timestamp field in my db table. What > would be the easiest way to get the newest timestamp out of the db? > > Thanks in Advance > Steve Use an ORDER BY on the timestamp field in your select statement, and use LIMIT to restrict the number of rows you retrieve (if you want a subset of rows). -- David Robley Temporary Kiwi! Quod subigo farinam

« previous php.general (#114425) next »