Date: 06/26/02
- Next message: Devrim GUNDUZ: "Re: [PHP-DB] Last ID from database?"
- Previous message: Ryan Jameson (USA): "RE: [PHP-DB] Last ID from database?"
- In reply to: Chris Payne: "[PHP-DB] Last ID from database?"
- Next in thread: Devrim GUNDUZ: "Re: [PHP-DB] Last ID from database?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
$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
- Next message: Devrim GUNDUZ: "Re: [PHP-DB] Last ID from database?"
- Previous message: Ryan Jameson (USA): "RE: [PHP-DB] Last ID from database?"
- In reply to: Chris Payne: "[PHP-DB] Last ID from database?"
- Next in thread: Devrim GUNDUZ: "Re: [PHP-DB] Last ID from database?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

