Hi guys I have this query:
$URLA=implode("','",$Array);
$Data=$connection->prepare("SELECT Category,ID FROM SITES WHERE URL IN('".$Array."') AND Email=:Email ORDER BY Category DESC");
$Data->bindValue(':URL', $URL);
$Data->bindValue(':Email', $Email);
$Data->execute();
This code give this error: Uncaught PDOException: SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match number of tokens. How can I solve this problem? Note that Array is a variable that comes out from a while loop.And contain more that one variable. I tryied bind this array like this:
$Data->bindValue(':Array', $Array);
But this didn't worked :'(