coolumanga
01-18-2012, 11:03 AM
hi i have this code
$sqlstr13="SELECT * FROM barcode WHERE Internal ='$preinternal' ";
$result13= mysql_query($sqlstr13);
$recordinput13= mysql_fetch_array($result13);
$timeeend=$recordinput13['timeB'];
$today2 = date("G:i:s");
so now i`m subtracting
$diff=strtotime($today2)-strtotime($timeeend);
in hear working perfectly for the time differance less than 1 minte
but time differance above 1 min it will give zero
plz help me to solve this problemmmmmmmm
with the code
$sqlstr13="SELECT * FROM barcode WHERE Internal ='$preinternal' ";
$result13= mysql_query($sqlstr13);
$recordinput13= mysql_fetch_array($result13);
$timeeend=$recordinput13['timeB'];
$today2 = date("G:i:s");
so now i`m subtracting
$diff=strtotime($today2)-strtotime($timeeend);
in hear working perfectly for the time differance less than 1 minte
but time differance above 1 min it will give zero
plz help me to solve this problemmmmmmmm
with the code