the code order is:
recordset
set session value
update record
the order should be:
update record
recordset
set session value
also, on the client-home.php page, you are creating a recordset, why not filter that recordset on the SecurityAssist_UserID session variable, and use the recordset for displaying the image instead of trying to store the file name in a session and change that on update.
Jason, I changed the order of the code as recommended and was able to update the profile photo. However, once I am logged out, I am unable to log in again. Upon checking the users table I found that my password had been wiped out after updating. Clearly this should not happen and I wondering why that is the case.
I should also say that I have two update server behaviours (Please see attached image) in the userupdate page, the first updates the users' table and the second deals with activating verification link for the double opt-in registration.
Should the second also be moved above the recordset or left alone?
Putting the update behaviour above the recordset logged me out of the table?
How do I rectify this?
The last point regarding filtering the recordset on the client-home page, should it have $_SESSION["SecurityAssist_UserID"] or $_SESSION["UserImage"] as the session name?