Hi guys how can I convert the value of a variable to time.
i.e
Thanks in advance.PHP Code:$time=$dr[0] //btw $dr came from while($dr=mssql_fetch_row($r))
//so how can I convert the $time to time or datetime coz I have an If statement to check if $time is greater than some variable that holds another value that should be time
something like.
If($time > $etime)echo"You are late";
else echo" You are on time";




Reply With Quote