SELECT * FROM `enter` ORDER BY `id` desc limit 100;
Basically what we are doing here is telling it to get all the results, but order them in descending order by the id, so largest first, and then limit the results to only the first 100 records returned, i.e. the 100 records with the largest IDs.
__________________
I rarely give code examples.
No, I have never used IIS or Windows of any kind as a web server. Get a real OS!
Please don't PM me, I won't respond.
|