This topic is locked
[SOLVED]

How to save fullname in when adding data in other table

7/24/2022 8:35:11 AM
PHPRunner General questions
S
Sayed author

fullname field is already in users table.
fullname field is in sales table as well.
How to autosave fullname of user logged in sales table when adding a sale?

T
Tayyab Ilyas 7/24/2022

Hi Sayed,
What are you tring to achieve by saving full name. There are many ways to do it.
You can link it ask foregin key or have it as dropdown option or use Security API
getUserData()
https://xlinesoft.com/phprunner/docs/secapi_about.htm

S
Sayed author 7/24/2022

I got it...
I Saved this value to session variable in AfterSuccessfulLogin event on the Events tab:

$_SESSION['fullname'] = $data['fullname'];

Thanks