query($sql); $list = ""; while($row = $db->fetch_array($rs)){ $photo = get_attachment("news",$row['id'],"photo"); if(file_exists($photo["path"].'original/'.$photo["file_name"])){ $img = ''; } else { $img = ''; } $list .= '
'.$img.'
'.$row['name'].'
書局:'.$row['location'].'
日期:'.$row['date'].'
'; } ?> Spring Sino