<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>www.olympicvillas.com</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-7">
<link rel="stylesheet" href="styles.css" type="text/css"><?php 
	  include 'includes/headcosmores.php';
?>

</head>

<SCRIPT language=JavaScript>
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
//-->
</SCRIPT>
<body bgcolor="#FFFFFF" text="#000000" background="images/demo1back.gif" leftmargin="0" topmargin="0"><SCRIPT src="deneme.js"></SCRIPT>
<div align="left">
  <table width="263" border="0" cellspacing="0" cellpadding="0" align="left" bgcolor="#FFFFFF" class="text" height="465">
    <tr> 
      <td width="263" valign="top" height="403"> 
        <?php 
			$dbh=mysql_connect("localhost","olympicv","olym8y");
			mysql_select_db("olympicv_olympic",$dbh);
			$sql = "SELECT * FROM GALLERY WHERE PUBLISH='yes' ORDER BY 'ID'";
			$result = mysql_query($sql);
?>
        <table width="132" border="0" cellspacing="0" cellpadding="0" align="center" height="152" class="text">
          <tr> 
            <?php
	   $count=0;	
	while ($myrow=mysql_fetch_array($result)) {
	         $count++;
			$ID=$myrow['ID'];
			$TITLEUK=$myrow['TITLEUK'];
			$IMAGE=$myrow['IMAGE'];
?>
            <?php if ($count ==  2) {  
?>
          <tr> 
            <? } ?>
            <td valign="top" align="center"> 
              <?php if ($IMAGE!=no) { ?>
              <a href="imagemore.php?ID=<?PHP  echo $ID ?>"><img src="../galleryimage/130/<?php echo $ID?>.jpg" width="130" height="88" border="0" alt="Click image to enlarge"></a> 
              <?php } else { ?>
              <?php } ?>
              <br>
              <?php echo $TITLEUK ?>
              <br>
              <img src="image/132.gif" height="5" width="132"> </td>
            <?php if ($count == 2) {  
		$count=1;
?>
            </.tr> 
            <? } ?>
            <?php } ?>
          </tr>
        </table>
      </td>
    </tr>
  </table>
</div>
</body>
</html>
