Creating two functions in AJAX with Javascript


= 60 && $arr[1]!=0)
{
$h = floor($tim/60); $m = $tim%60;
$res = $h.’ Hrs ‘.$m.’ Mins’;
}
else if($tim >= 60 && $arr[1]==0)
{
$h = floor($tim/60); $m = $tim%60;
$res = $h.’ Hrs ‘;
}

return $res;
}
?>

<?php
while($row = mysql_fetch_array($result1)) {
$str = str_replace(' ', '', $row['remark']);
$sr = str_replace('On Time', '',$str);
$s = str_replace('Delay', 'late by', $sr);

$ar = explode(" ", $s);
$me = strtolower($row['arrived']);
$mea = ucwords($me);
$z = $row['image'];
echo "

“;
echo “

To Schduled Status
“.”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Back to top