Date: 06/26/02
- Next message: Juan Pablo Aqueveque: "Re: [PHP-DB] Last ID from database?"
- Previous message: Hutchins, Richard: "RE: [PHP-DB] Last ID from database?"
- Maybe in reply to: Chris Payne: "[PHP-DB] Last ID from database?"
- Next in thread: Juan Pablo Aqueveque: "Re: [PHP-DB] Last ID from database?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
-----Original Message-----
From: Ryan Jameson (USA)
Sent: Wednesday, June 26, 2002 1:59 PM
To: 'Chris Payne'
Subject: RE: [PHP-DB] Last ID from database?
It depends on if you just inserted it, if you did:
mysql_insert_id
if not, you'll need to do a query for SELECT max(ID) as lastID from Table
:-)
<>< Ryan
-----Original Message-----
From: Chris Payne [mailto:chris <email protected>]
Sent: Wednesday, June 26, 2002 1:57 PM
To: php-db <email protected>
Subject: [PHP-DB] Last ID from database?
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-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
- Next message: Juan Pablo Aqueveque: "Re: [PHP-DB] Last ID from database?"
- Previous message: Hutchins, Richard: "RE: [PHP-DB] Last ID from database?"
- Maybe in reply to: Chris Payne: "[PHP-DB] Last ID from database?"
- Next in thread: Juan Pablo Aqueveque: "Re: [PHP-DB] Last ID from database?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

