Answer the question
In order to leave comments, you need to log in
Why is there an error in the prepared expression?
if i do that
$string = "'%бла-бла%', '%бла-бла%', '%бла-бла%'";
$rs->execute(array($string));
PDOException: SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match number of tokens
$rs->execute(array('%бла-бла%', '%бла-бла%', '%бла-бла%'));
Answer the question
In order to leave comments, you need to log in
So you substitute the string where the array should be. Then it should be like this:$rs->execute(explode(', ', $string));
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question