first, let me apologize for my ignorance as i'm a trial and error programmer. i'm trying to do something that seems it should be easy. when i modify a record in dbman SQL, i want to automatically set a field to the current date. the following code is already in the script to set a userid field:
so i tried adding the following:
$self->{cgi}->$self->{glb_cfg}->{default_updated_field} = GT::Date::date_get();and get the following error:
Can't call method "Dbsql::Home=HASH(0x11b86c)" on unblessed reference at Dbsql::Home::modify_record line 34.
what am i missing please???
Code:
$self->{cgi}->{$self->{cfg}->{'auth_user_field'}} = $self->{user}->{Username};so i tried adding the following:
Code:
use GT::Date qw/:all/; $self->{cgi}->$self->{glb_cfg}->{default_updated_field} = GT::Date::date_get();
Can't call method "Dbsql::Home=HASH(0x11b86c)" on unblessed reference at Dbsql::Home::modify_record line 34.
what am i missing please???