Re: Slecting data
| From: | Daniel Convissor | Date: | Wed, 11 Oct 2000 04:38:47 +0000 |
| Subject: | Re: Slecting data | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-19497@lists.php.net to get a copy of this message | ||
Hey Ade:
> I have ID setup in the database table as Primary Key and auto incrementing
> so I always need to pick up the highest numbered record. Can anyone help me
> with this snippet of code??
SELECT * FROM UKGSSegaNews ORDER BY id DESC LIMIT 1;
--Dan
--
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
More than just answers. Solutions. (SM)
http://www.analysisandsolutions.com/
4015 7 Av #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409