<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-7">
</head>

<body bgcolor="#FFFFFF" text="#000000">
<?php 
			$dbh=mysql_connect("localhost","olympicv","olym8y");
			mysql_select_db("olympicv_olympic",$dbh);
			$sql = "SELECT * FROM GALLERY ORDER BY 'id'";
			$result = mysql_query($sql);
?><br>
<table width="560" border="1" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF" bordercolor="#CC0000" align="center" class="ttext">
  <tr> 
    <td bgcolor="#CCCCCC" bordercolor="#CCCCCC">
      <div align="center" class="">ALL GALLERY IMAGES</div>
    </td>
  </tr>
  <tr>
    <td bgcolor="#FFFFFF" bordercolor="#FFFFFF"> 
      <p>&nbsp;
        <?php
	   $count=0;	
	while ($myrow=mysql_fetch_array($result)) {
	         $count++;
			$ID=$myrow['ID'];
			$TITLE=$myrow['TITLE'];
	
		
?>
      <table width="511" border="0" cellspacing="0" cellpadding="5" align="center" class="ttext">
        <tr> 
                      
          <td width="53" align="center" valign="top">
            <?php echo $count ?>
          </td>
                      
          <td align="left" width="246"> 
            <?php echo $TITLE ?>
          </td>
                      
          <td align="left" width="76" valign="top"><a   href="edit_image.php?ID=<?php echo $ID?>" >αλλαγή</a></td>
                      
          <td align="left" width="85" valign="top"><a   href="delete_image.php?ID=<?php echo $ID?>" >διαγραφή</a></td>
                    </tr>
                  </table>
                  
      <p>
        <?php
}
?>
      </p>
    </td>
  </tr>
</table>


</body>
</html>
