0) { // Fetch matched data from mySQL $row = mysql_fetch_array($result); $id = $row["id"]; $date = $row["date"]; $time = $row["time"]; $ppath = $row["path"]; $location = $row["location"]; $ipp = $row["ip"]; $count = $row["count"]; // Explode date & time from database $slask = explode ("-", $date); $year = $slask[0]; $month = $slask[1]; $day = $slask[2]; $slask = explode (":", $time); $hour = $slask[0]; $min = $slask[1]; $sec = $slask[2]; // Convert database time to unixtime $ut = mktime ($hour,$min,$sec,$month,$day,$year); // Has time expired, or is timecheck disabled? if ( ((time() - $ut) > ($timeout * 60)) || ($timeout == 0) ) { $count++; $query = "UPDATE counter SET date='$currDate', time='$currTime', path='$path', location='$url', ip='$ip', count='$count' WHERE id='$id'"; $result = mysql_db_query($mdb,$query ,$connection); if(!$result) { echo "
UPDATE unsuccessful: ", mysql_error(); exit; } } // Show counter (if $Show = YES) and pad with n zeroes if ($show == "Yes") { $counter = str_pad($count, ($padding - strlen($count) +1 ), "0", STR_PAD_LEFT); ?> \" SIZE=\"\" COLOR=\"\"> Detecting Macromedia Flash, please wait...