I am trying to pass an array to my query placeholders but its not working as i expect. This is the query :
select * from A where id IN (1,2,3)
This is the PHP function :
$ids=['1','2','3'];
$result = $this->queryall_array(select * from A where id IN (?,?,?),$ids);
I am not sure if this is the right way to do that. Thanks,