Jump to content

12-24-48h...


techker

Recommended Posts

Hey guys i need to make a query that checks entries in the last 24 hours the 48 then 72...

 

i got this but it show in 48 and 72 and month..

 

$x12 = 'SELECT COUNT(*) FROM  Sortie WHERE  `Date`> NOW() - INTERVAL 48 HOUR'; 
$result12 = mysql_query($x12) or die(mysql_error()); 
$total_rows12 = mysql_fetch_row($result12);

 

my goal is to get

 

in the last 12h..the skips to 48h if it stay without editing and so on..

Link to comment
https://forums.phpfreaks.com/topic/253578-12-24-48h/
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.