Skip to content
Advertisement

Variable is dump to database but the data is not updated? [closed]

By using var_dump($_POST), I get this:

array(2) { [“leadershipr”]=> string(1) “2” [“add”]=> string(0) “” } 4

But, data inside the database is not updated.

This is my code for data update,

JavaScript

Advertisement

Answer

It seems like you forgot to bind your ‘id’ parameter?

Maybe add in the following (after the first bindParam and before the execute call):

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