Hi there and thanks for the reply. I tried the code and got under 60 minutes even after setting roster_update to May 10, 2012. I didn't make any changes to the code.
<?php
include("./includes/header.php");
$qry = "SELECT
IF(
CEIL(
TIME_TO_SEC(
TIMEDIFF( CURTIME( ) , roster_update )
) / ( 60 * 60 )
) > 1,
1,
0) AS updated
FROM addon_cron";
$res = mysql_query($qry);
$row = mysql_fetch_array($res);
if( $row['updated'] == 0 ) {
echo "<p align='center'>under 60 minutes.</p>";
} else {
echo "<p align='center'>Over 60 minutes.</p>";
}
?>
The query is very far above my paygrade, so I'm finding it impossible to even follow the logic of it, unfortunately. Is there something you might see at second glance that would cause my problem?
Thanks very much for your time.