Rumah > Artikel > pembangunan bahagian belakang > ,取值输出有关问题
求助,取值输出问题
$idss = '3,2,7,5';<br />$re = $db->findall('select id,title from aaa where id in('.$idss.')');<br />foreach($re as $list){<br /> echo $list['id'].',';<br />}
$re = $db->findall("select id,title from aaa where id in($idss) order by fiind_in_set(id, '$idsd')");
<br />$re = $db->findall("select id,title from table where find_in_set(id, ".$idss.")");<br />