Skip to content
Advertisement

PHP executes but doesnt execute SQL update correctly

I have a table which displays -Staff ID (Primary Key) -Staff Name -Staff Position

All the data loads in to my grid, the grid has an update button witch should let me to update it but it returns original result after clicking update.

Example Here

Advertisement

Answer

You need to change your update query from

to

What you were doing is $_POST[staffname] which must be like as $_POST['staffname'] and always try to check using error_reporting(E_ALL) function and need to check that your values are set or not

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