This topic is locked

Save Username Record on table when updated/added or edited

4/21/2008 11:02:23 AM
PHPRunner General questions
S
stevenf author

Hi all,
I have added a new field to my table.
I don't need this field to show I just need to insert the username of the person who adds/edits or updates a record.
It's a Last Updated by field what I'm looking for.
Can someone help please?
Thanks
Steven.

J
Jane 4/22/2008

Steven,
use Before record added/Before record updated event on the Events tab for this purpose.

Here is a sample:

$values["FieldName"] = $_SESSION["UserID"];



where FieldName is your actual field name.