I think the problem is you can’t replace $update_values_imploded to a placeholder because it’s not a parameter, but a string forming part of the query. It will need a different approach.
Hi @SamA74 yes I thought I could do it like you said but then I know how to bind paras for user_id but don’t know how to do it for the other params.
I normally use to bind params in the follow way:
Of course, I see.
TBH I never use bind params, I exclusively use PDO and pass params in with execute($params)
That way you can build the array as you go:-
FIFY = “Fixed It For You”. Put the link to bind_params into the quote because you asked “How do I bind params” without qualifying that you already knew how or that your question was about a variable number of parameters.
Sam’s answer is almost complete, except you need a second array for building the types string. (or do it with actual string concatenation)