Skip to content
Advertisement

Bind_param warning number of variables and parameters don’t match [closed]

When I go to edit anything other than the image and link I get this error “”, although it still updates the item and displays it in my list of products as the new updated info. The parameters and variables match and i have counted a number of times, I am starting to think its something else in the code.

enter image description here

enter image description here

Here is my code for my edit page:

JavaScript

Your help would be greatly appreciated and apologies I am still new and first attempt at a crud system. Thank you.

Advertisement

Answer

The problem is you didn’t open { at else line 61 so:

JavaScript

to:

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