Skip to content
Advertisement

How to fix my CRUD not working in Update PHP MSQL

I tried to implement CRUD in m website but I am able to make Create, Read and Delete. However, something went wrong during developing the Update function. Can anyone help me? I will provide the code below. The code is used to update the users information if the logged in person is an Admin. Thank you.

JavaScript

Advertisement

Answer

JavaScript

I updated the code please run that code. I cannot guess more what else could be be wrong but i have added some echo to your code. please run it and find where is the error. Double check your bind_parameter type.they must be exactly same as your database table types. i only help you as giving u an example not the whole solution.

Now you can see the alert showing where are you so you can track down the problem

Hope it will help and solve your problem.

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