I'm trying to select some values from a MySQL table like this :
<?php
$this_id=(55,66,77);
$cate= find_by_sql('select * from tages where id in ( "'.$this_id.'") '); 
//function find_by_sql() get  values and put in array ()
?>
<?php foreach($cate as $cates1): ?>
<?php echo $cates1->tage_name; 
// tage_name is var in class 
?>
<?php endforeach; ?>
But, it's only selecting where the id is 55.
 
     
     
    