Answer the question
In order to leave comments, you need to log in
Mysql does not accept IN value. Why?
Good afternoon, my IN parameter does not accept the second value, and so on, it only displays the first product, numbered: "1". What could be wrong?
I make a request like this:
public function cart() {
$params = [
'id' => '1,2',
];
return $this->db->row('SELECT * FROM goods WHERE id IN (:id)', $params);
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question