You can use the timediff in your update query, wouldn't that be easier?
pritaeas
Posting Prodigy
9,533 posts since Jul 2006
Reputation Points: 1,194
Solved Threads: 1,494
Skill Endorsements: 98
Something like this;
UPDATE clocking_system.clocking
SET hours = TIMEDIFF(clock_out, clock_in)
WHERE ID = '$_POST[id]' AND hours IS NULL
pritaeas
Posting Prodigy
9,533 posts since Jul 2006
Reputation Points: 1,194
Solved Threads: 1,494
Skill Endorsements: 98
Missed:
INNER JOIN job_level
pritaeas
Posting Prodigy
9,533 posts since Jul 2006
Reputation Points: 1,194
Solved Threads: 1,494
Skill Endorsements: 98