This topic is locked
[SOLVED]

Not Storing UserID

7/17/2022 7:48:28 AM
PHPRunner General questions
S
Sayed author

$data = array();
$data["ModBy"] = $_SESSION["UserID"];
$data["LID"] = $values["LID"];
$data["Disposition"] = $values["Disposition"];
$data["CallBackDate"] = $values["CallBackDate"];
$data["CallBackTime"] = $values["CallBackTime"];
$data["Comments"] = $values["Comments"];
$data["ModDate"] = $values["ModDate"];
DB::Insert("Disposition", $data )*

Above code is in Event > After record updated , on Edit Page.
Everything is fine but $data["ModBy"] = $SESSION["UserID"]; is not stroring UserID in database.
Could you please, right the correct one. Thanks

S
Steve Seymour 7/17/2022

Have you put the UserID in $SESSION["UserID"] ? after successful login. If you have.. check the spelling/ case

mbintex 7/17/2022

Thought hat you missed the underscore in $ SESSION, but that is deleted by the forum editor ...