![]() |
Davor GeciDevClub member 10/29/2024 |
In ADD PAGE Before record added and EDIT PAGE Before record updated events add this code: if ($values["start_time"] && $values["end_time"]) { Hope this helps, |
D
|
DUKE 10/30/2024 |
You can also edit your SQL Query: select Add the timestampdiff line at the end of your SQL query This will create an additional field (in your application) with the difference. If you want the difference saved in the database itself you can add an actual additional field to the table: Hours Then, edit page after record updated add the following line. db::exec("update tmp_times set `Hours` = timestampdiff(hour,Start_Time,End_Time) where Hours is null") Carpet bombing update - will do the latest one, as well as all that have not been updated. |