query($sql); $numOfResult = mysql_num_rows($rs); if($numOfResult >0){ $row = $db->fetch_array($rs); $title = $row[$prefix."title"]; $content = $row[$prefix."content"]; $sqlimg = "SELECT * FROM attachment WHERE table_name='services_list' AND table_id='".$row["id"]."'"; $rsimg = $db->query($sqlimg); $numOfResult_img = mysql_num_rows($rsimg); $new_image=""; if($numOfResult_img>0){ $new_image =''; while($rowimg = $db->fetch_array($rsimg)){ $new_image .=''; } $new_image .='
'; } } ?>