Skip to content
Advertisement

User updated information not showing

i have problem in my php which is user updated data is not showing in the page, it shows only the previous data and not the updated data, but the information already updated in database

This is my updateForm.php:

JavaScript

This is my stdUpdateData.php, where the sql database process the update data:

JavaScript

This is the studentProfile.php,when user register for the first time it show the information correctly, but after user update their information it only updated in database and not updated in this form even i refreshed it, still doesnt show the updated information:

JavaScript

Advertisement

Answer

I assume you stored student data in the session after inserting in the database.

Then again you have to update your session data after database update operation.

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement