Thanx vincet
I am again getting problem here
I want to display :
12:00:00 - 12:15:00
12:15:00 - 12:30:00
12:30:00 - 12:45:00
12:45:00 - 01:00:00
01:00:00 - 01:15:00
01:15:00 - 01:30:00
In the code below i am trying to increase the calue of $try1 with 15 minutes in every for loop.
I am getting prob here..
Could you please help me here.
$try1 = 12:00:00
for($i=0; $i<6; $i++);
{
$a = "$try1";
$slot = "15";
// Slot is 15 minutes
//$b = "try1";
$a=explode(':',$a);
//$b=explode(':',$b);
$c=($a[0]3600) + ($a[1]60) +($a[2]) + 0 + ($slot*60) + 0;
$d=mktime(0,0,$c,1,1,1970);
$e = strftime("%H:%M:%S",$d)."\n"; echo"<BR>";
echo"s = "; echo $e; echo"<BR>";
$try1 = $e; echo"<BR>";
//echo"try1 for loop = "; echo $try1;
echo"<BR>";
$try1 = $e;
}
Thanks
Chanderjit