Skip to content
Advertisement

PDOStatement::execute Values doesn’t work with WHERE Condition & HAVING Condition

i have a erreur PDOStatement::execute Values with WHERE Condition & HAVING Condition in same requette

how i can make execute preparing value in both of theme WHERE, HAVING

JavaScript

Erreur : Invalid parameter number: number of bound variables does not match number of tokens

Advertisement

Answer

you first have a problem in your mysql code which would run, so you always should test your queries

WHERE _x_md_currencies_x_md_tasks.ID_md_currencies = _md_currencies.ID),"") sho9uld the line look like, as column and table name are separated by a dot and ifnull needs also a parameter, so you need to close one brakcket first

The errro in the php part, ist first that you use single quotes alreadx, to determine the string,so using them inside of the string is problematik, as you really don’t need it.

As you see by $ValueRequette=You have to use the palcehoders name with the double points

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