Hello All bellow is the code for time in which is not showing up when i login as admin.
Php Code:
<?php $query = "select * from presence where uid=".$uid." and date='".$date."'";
$recordset = mysql_query($query);
while($record = mysql_fetch_array($recordset))
{$count = 1;
//echo "<td>Your Time In :==: ",$record["timein"],"</td></tr><br></table>";
echo "<center><table><tr><td>Your Time In : ",$record["timein"],"</td></tr></table></center>";
$lasttimeout = $record["timeout"];
}
echo "<center><table><tr><td>Your Time Out : ",$lasttimeout,"</td></tr></table></center>";
?>
When i login as admin the time in is not showing up. But when i login as a user it shows time in. Secondly time zone is also difference. Like when i click on time out button that is quite different according to my system time I hope I made every thing clear.
If this code i wrong so can you also advise me any other code for time in only ?
Regards
Usman