Re: Last ID from database?

From: Date: Wed, 26 Jun 2002 20:03:03 +0000
Subject: Re: Last ID from database?
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-20146@lists.php.net to get a copy of this message
$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@uct.cl> 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

« previous php.db (#20146) next »