Jump to content

A small problem


smti

Recommended Posts

Hello,

 

I'm a bit stumped and need some assistance. Here is my problem:

 

I want to show the "top 3" records in a database in descending order by id.  I know how to sort the records, but how do I only display 3 of the records after they have been sorted by descending order (instead of displaying all records in desc.)? Do I need to manipulate the mysql fetch array on my PHP page?

 

Thanks,

 

-smti

Link to comment
https://forums.phpfreaks.com/topic/92665-a-small-problem/
Share on other sites

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.