PHP + MySQL - Load last inserts
| From: | Sebastian Muszytowski | Date: | Mon, 30 Mar 2009 12:40:22 +0000 |
| Subject: | PHP + MySQL - Load last inserts | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-290820@lists.php.net to get a copy of this message | ||
Hello :)
I have some troubles with php and mysql. I have a normal MySQL Query and this returns X > 3 rows.
Now i want to get the last 3 inserted values. For Example i've inserted
A, B, C, D, E
I want to get the last inserted values, e.g. E D C (in reversed order)
So how to do this? I already searched the web and the whole php.net site but i don't see any workaround.
Thanks in advance
Sebastian