apathy
Založený: 28.05.2008
Príspevky: 1
Zaslal: 2008-05-28 15:47
Návrat hore
Odpovedať s citátom
|
Hello
I want to update a specific timestamp field when a field is updated -- any suggestions on how to do it?
I have:
| Kód: |
$opts['fdd']['Divert_1'] = array(
'name' => 'Dial Plan 1',
'select' => 'T',
'maxlen' => 20,
'sort' => true
);
$opts['fdd']['Divert_2'] = array(
'name' => 'Dial Plan 2',
'select' => 'N',
'maxlen' => 20,
'sort' => true
);
$opts['fdd']['M_Divert_1'] = array(
'name' => 'M Divert 1',
'select' => 'T',
'maxlen' => 19,
'sort' => true
);
$opts['fdd']['M_Divert_2'] = array(
'name' => 'M Divert 2',
'select' => 'T',
'maxlen' => 19,
'sort' => true
);
|
and I want to update M_Divert_1 to NOW() when Divert_1 is changed and update M_Divert_2 to NOW()when Divert_2 is changed.
I had found out how to update a date field when the record is updated but not how to update specific date field when a specific field is updated.
Any suggestions on how to do this?
James
|
|
Odoslať novú tému
Odpovedať na tému
|
|
|