i have following code i am trying to compare two get in order to get into if statement but i something wrong with is code.
the following code should run if the time is above 23:29 and less then 08:10...
$gettime="04:39"; // getting this from database
$startdate = strtotime("23:29");
$startdate1 = date("H:i", $startdate);
$enddate = strtotime("08:10");
$enddate1 = date("H:i", $enddate);
//this condition i need to run
if($gettime >= strtotime($startdate1) && $gettime <= strtotime($enddate1))
{
echo"ok working";
}
please help me in dis regard
thanks