this one's very imp for me.i have got two links on a single form namely logintime and logouttime. when the user comes to the office and starts the project he/she first logs in and after 8 hrs of work logs out.
ok fine thats happening.......no issues.the values are inserted in the table taskdatetime when logging in and updated when "logging out".
now there may be some cheaters who can keep on updating the logout field.
what i want is once u "LOGOUT" of the scene there can be no way a user can again update the table.Any suggesstions???below is the code.....which can be updated at any time.i dont want that...plz help
- Code: Select all
$now = time();
$anh = $date = date("Y-m-d H:i:s a",$now);
$sql="update taskdatetime set outtime='$anh' where user_id='$sesuserid'" ;