Jason Pettis Updating knop_user data after manual database update
Jun 15, 2012; 11:47
Jason Pettis
Updating knop_user data after manual database update
Hello, it's another knop-newbie question!
Following in the steps of my previous question, how do I update data in the knop_user variable if I update values in the users' database record?
I have a manual-created form (not made with knop_form) that I'm using to update a user's record in the database
I am updating the record manually using an inline (not using knop_database functions). After the update, I want to refresh the data in the knop_user variable.
I initially created my user var with knop functions: var('s_user' = knop_user(-userdb=$d, -userfield='email', -passwordfield='password'), 's_lang'=null);
and then authenticate the user with values submitted through a knop_form element called $loginform: $s_user -> login(-username=($loginform -> username), -password=($loginform -> password));
Later on, the user updates data using my not-knop_form and an inline using SQL.
What knop_user functions do I use to refresh all fields on the user record in the user var?
Thanks! -Jason Pettis
Jun 15
Steve Piercy - Web Site Builder Re: Updating knop_user data after manual database update
Jun 15, 2012; 14:58
Steve Piercy - Web Site Builder
Re: Updating knop_user data after manual database update
Jun 16
Johan Solve Re: Updating knop_user data after manual database update
Jun 16, 2012; 23:07
Johan Solve
Re: Updating knop_user data after manual database update
Jun 16
Steve Piercy - Web Site Builder Re: Updating knop_user data after manual database update
Jun 16, 2012; 15:41
Steve Piercy - Web Site Builder
Re: Updating knop_user data after manual database update
Search
Lasso Programming
This site manages and broadcasts several email lists pertaining to Lasso Programming and technologies related and used by Lasso developers. Sign up today!