Re: last record of mysql table
| From: | Tomas Garcia Ferrari | Date: | Wed, 10 Oct 2001 21:08:39 +0000 |
| Subject: | Re: last record of mysql table | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-13207@lists.php.net to get a copy of this message | ||
Hi,
There is an article on MySQL's website that maybe is helping you:
8.4.6.3 How Can I Get the Unique ID for the Last Inserted Row?
( http://www.mysql.com/doc/G/e/Getting_unique_ID.html
)
Regards,
Tomás
> Hi all!
>
> Problem: I'd like to get the last inserted record of a table in a mysql
> database. In other words: to obtain the last row of the table.
> Specifically the thing is this: I'm making an adveritsement site, and
> I'd
> like to get the latest ad submitted.
> Question: how to do that?
>
> Thanx
> Balazs
+-- --+
Tomás García Ferrari
Bigital
http://bigital.com/
+-- --+