Jump to content

[SOLVED] Modify Query to Show Five Most Recent Products


webref.eu

Recommended Posts

Hi All

 

I want to show only the five most recent products added to a database.  So far, I have the below query, how do I modify it to show only the first five most recent?

 

$sql = "SELECT * FROM Products ORDER BY ProductDateAdded DESC";

 

Many thanks

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.