Unfortunately, no luck yet.
Maybe this might help.
here is the function timeleft
function timeleft($time1, $time2){
if(strtotime($time2) < time()){
return 0;
}
else{
$diff_in_sec = abs(strtotime($time2)-strtotime($time1));
$days = floor($diff_in_sec/86400);
$diff_in_sec = $diff_in_sec%86400;
$hours = floor($diff_in_sec/3600);
$diff_in_sec = $diff_in_sec%3600;
$mins = floor($diff_in_sec/60);
$diff_in_sec = $diff_in_sec%60;
$timeleft = $days."d ".$hours."h ".$mins."m ".$diff_in_sec."s";
return $timeleft;
}
And here is where I attempt to use it
$qr = mysql_query("SELECT * FROM items WHERE uid=1 AND sold=0");
$nrows = mysql_num_rows($qr);
if ($nrows > 0){
while($row=mysql_fetch_array($qr) AND timeleft($row['start'], $row['end'])!=0){
Thanks again for the help,
I really appreciate it!