Clock In/out function
Posted: Tue Dec 13, 2011 2:37 am
I need help with my coding.
So far what i have done is the clock in and out function and the code is
The problem is the clock in/out needs to be created in the same record and not 2 different records in the database.
Please help thanks!!
So far what i have done is the clock in and out function and the code is
Code: Select all
<?php
include "dbfunctions.php";
(date_default_timezone_set("Asia/singapore"));
$date =date("Y-m-d H:i:s");
$query = "INSERT INTO time(clockin) VALUES ('".$date."')";
$result = executeInsertQuery($query);
echo "$date";
?>Please help thanks!!