Jump to content

[SOLVED] Retrieve last ten records from the database


chelnov63

Recommended Posts

Hi,

 

using LIMIT I know how to easily retrieve the first 10 records from the database. But is there an easy way to retrieve the LAST 10 records  from the database? Cheers

 

e.g

 

$sql = "SELECT * FROM employees";

 

How would i retrieve the last 10 records..

 

cheers in advance

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.