Jump to content

Showing 4 newest?


doddsey_65

Recommended Posts

How would i display the 4 newest records of a database? Im guessing the $date = now() function is involved but how would i get it to show the 4 newest? I was thinking of showing the newest by using the now() function by doing something like now() -4 or something like that to show the newest in the last 4 days but if there arent any then it would be blank.

Link to comment
https://forums.phpfreaks.com/topic/197560-showing-4-newest/
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.