$sql= "SELECT ID FROM table_name ORDER BY ID DESC limit 1"

.
..
...

-- jp


At 15:56 26/06/02, Chris Payne wrote:
>Hi there everyone,
>
>How Can I grab just the LAST ID from a database in MySQL with PHP
>easily?
>
>Thanks you :-)
>
>Chris
>
>
>---
>Outgoing mail is certified Virus Free.
>Checked by AVG anti-virus system (http://www.grisoft.com).
>Version: 6.0.372 / Virus Database: 207 - Release Date: 6/20/2002
>

________________________________________________________
Juan Pablo Aqueveque <[EMAIL PROTECTED]>
Ingeniero de Sistemas
Departamento de Redes y Comunicaciones http://www.drc.uct.cl
Universidad Católica de Temuco.
Tel:(5645) 205 630 Fax:(5645) 205 628


--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to