Hi,
I need to call some data from database for yesterday, I wrote this:
	
	
	
		
But ($lastDay) is calling the data based on "last 24 hours", while I want from yesterday at 00:00 hrs to today at 00:00 hrs, so the counter will update the value at 00:00 hrs from each day.
Any idea guys?
				
			I need to call some data from database for yesterday, I wrote this:
		Code:
	
	$db->fetchOne('
        SELECT COUNT(resource_download_id) AS total
        FROM xf_resource_download
        WHERE last_download_date > ' . $lastDay . 'Any idea guys?
