I use this code th get some result by using find() function
$id = implode(',', (array)$id);
$post = MyPost::find("post_id IN (".$id.")");
Is this normal to use "IN" and I'm curious about is it has security issue like SQL Injection ?
Thanks
I use this code th get some result by using find() function
$id = implode(',', (array)$id);
$post = MyPost::find("post_id IN (".$id.")");
Is this normal to use "IN" and I'm curious about is it has security issue like SQL Injection ?
Thanks