Re: [PHP-DB] Last ID from database? From: Juan Pablo Aqueveque (juque <email protected>)
Date: 06/26/02

$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 <juque <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