I want to update the time after editing the page … with the syntax below …
but it doesn’t run on the edit page …
Did I write the wrong script or use the function incorrectly? Thanks
// Row Updated event
function Row_Updated($rsold, &$rsnew) {
//echo “Row Updated”;
$usr = CurrentUserName();
$crdt = CurrentDateTime();
$edt = $rs[“id”];
if (CurrentPageID()==“edit”) {
$myResult = Execute(“UPDATE katalog SET editaktor=‘$usr’,editdate=‘$crdt’ WHERE id=‘$id’”);
}
}
No need to use “Row_Updated” server event. You may simply use “Row_Updating” server event:
$rsnew[“editaktor”] = CurrentUserName();
$rsnew[“editdate”] = CurrentDateTime();
oke.thanks