Link to home
Start Free TrialLog in
Avatar of Richard Winnick
Richard Winnick

asked on

php mysql need help with table trigger

Hi -
I have a table with time card type data -
I need help creating a trigger for two specific fields in the table (start_time, end_time) that will not allow the fields to be updated once they have values in them -
The process is that a 'record' is inserted into the table for a specific task with empty start and stop datetime fields -
The start and stop fields are updated using a form when the task is started and finished -
I do not want the user to be able to use the form again to 'change' the start and finished times -

This is my first attempt at creating a trigger and I have spent way too many hours trying to figure out how to make this work :-)

Any and all help gratefully appreciated -
Richard
ASKER CERTIFIED SOLUTION
Avatar of Ray Paseur
Ray Paseur
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Richard Winnick
Richard Winnick

ASKER

Hi Ray -

You always come to my rescue :-)

I will play with this a bit later and keep you posted -

Hope you're having a wonderful day -

Richard
Hi Ray -

Worked like a charm and I even learned enough to write another!
As always the folks at experts exchange are super and you're a super hero to me :-)

have a wonderful day
R
thanks again!