query($sql); if($result->size() > 0){ $row = $result->fetch(); $sqlp = "select * from online_pic where on_code = '".$row["on_code"]."' and c_no = '".$c_no."' order by list_no desc"; $resultp = $mysql->query($sqlp); ?> 美學生活