![]() |
romaldus 7/16/2016 |
I have an issue getting autoinsert field to be inserted with $_SESSION["UserID"] values on Excel Import. My project is with phprunner 8.1v. Here is my table structure "trld" ID, VAR, UPBY Excel file structure: My excel sheet has only VAR field with data. ID field should be autoincrement. UPBY field is auto-insert field with $_SESSION["UserID"]. Logic: when I add or import new VAR data then the UPBY field in the table should be auto-inserted with $_SESSION["UserID"] value. Action so far done:
$_SESSION["UserID"]=$data["UserID"]; with $_SESSION["any_name"]=$data["UserID"]; and use it in before insert record event in import page |
A
|
Abul author 7/16/2016 |
You don't have to load session userid in after succesully login event. It's PHPRUNNER default session for username of currently logged-on user. Try to replace $_SESSION["UserID"]=$data["UserID"]; with $_SESSION["any_name"]=$data["UserID"]; and use it in before insert record event in import page
|
![]() |
romaldus 7/16/2016 |
I think this is strange. I am curious about your case, so i made a sample project. $_SESSION["UID"] = $data["ID"];
|
A
|
Abul author 7/17/2016 |
I think this is strange. I am curious about your case, so i made a sample project. In after successful login event i use the following: $_SESSION["UID"] = $data["ID"];
|