View Single Post
Old 12-23-2021, 10:17 PM  
sarettah
see you later, I'm gone
 
Industry Role:
Join Date: Oct 2002
Posts: 14,091
You can use the php date() function to get the day of the month and then use that as your limit.

$limit=date('j',time());
$sql="select * from tablename limit " . $limit;

.
__________________
All cookies cleared!
sarettah is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote