<table width="100%" border="0" cellspacing="1" cellpadding="4">
        <tr valign="top"> 
          <td width="50" bgcolor="#F2F2F2"> 
            <?php echo $priority ?>
          </td>
          <td width="150" bgcolor="#F2F2F2"> 
            <b> 
            <?php echo $name ?>
            </b></td>
          <td bgcolor="#F2F2F2">
		
            <table width="100%" border="0" cellspacing="1" cellpadding="0">
                    <tr>
                    <?php
			$sql7 = "SELECT * FROM seasons WHERE lang_id=1 ORDER BY priority";
			$result7 = mysql_query($sql7);
	while ($myrow=mysql_fetch_array($result7)) {
			$seasonid=$myrow['insert_id'];
			$season=$myrow['name'];
			$date1=$myrow['date1'];
			$date2=$myrow['date2'];
?>
                      <td>
 <div style="width:100px" align="center">
                           <?php
			$sql9 = "SELECT * FROM prices WHERE room_id='$insert_id' AND season_id='$seasonid'";
			$result9 = mysql_query($sql9);
	while ($myrow=mysql_fetch_array($result9)) {
			$pid=$myrow['id'];
			$price=$myrow['price'];
			$available=$myrow['available'];
?>
                       <a href="edit-price.php?id=<?php echo $pid?>" class="links2"><?php echo $price ?></a>
<?php } ?>
                        </div>
                      </td>
                      
                  <?php } ?>    
                    </tr>
            </table>
           
         </td>
          <td width="100"> 
          	<?php 
			$sql5 = "SELECT * FROM prices WHERE room_id='$insert_id'";
			$result5 = mysql_query($sql5);
			$nu_row5 = mysql_num_rows($result5);
?>
                  <?php 
	if  ( ( $nu_row5>0)) {
	?>
                  <img src="img/arrow2.gif"> <a href="all-prices.php?roomid=<?php echo $insert_id ?>" class="links1"> ΤΙΜΕΣ</a> [<?php echo $nu_row5 ?>]
                <?php } ?>
                <hr>
                
            <?php 
			$sql6 = "SELECT * FROM seasons WHERE lang_id=1";
			$result6 = mysql_query($sql6);
			$nu_row6 = mysql_num_rows($result6);
?>
            <?php 
			$sql7 = "SELECT * FROM prices WHERE room_id='$insert_id'";
			$result7 = mysql_query($sql7);
			$nu_row7 = mysql_num_rows($result7);
?>
                  <?php 
	if  ( ( $nu_row7<$nu_row6)) {
	?>
                  <img src="img/arrow2.gif"> <a href="new-price.php?roomid=<?php echo $insert_id?>" class="links1">προσθήκη 
                  τιμής</a> 
                <?php }?>
          </td>
          <td width="70" align="center" bgcolor="#F2F2F2"><div style="margin-top:3px"><a href="edit-room.php?id=<?php echo $insert_id?>" class="link">ΑΛΛΑΓΗ</a></div></td>
          <td width="70" align="center" bgcolor="#F2F2F2"><div style="margin-top:3px"><a href="delete-room.php?id=<?php echo $insert_id?>" class="link">ΔΙΑΓΡΑΦΗ</a></div></td>
        </tr>
      </table>