<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);
	
if ($submit) {
$sql="DELETE FROM BOOKING  WHERE ID=$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="">Η ΔΙΑΓΡΑΦΗ ΤΟΥ BOOKING ΕΓΙΝΕ</div>
    </td>
  </tr>
  <tr>
    <td bgcolor="#FFFFFF" bordercolor="#FFFFFF">
      <p>&nbsp;
      <table width="511" border="0" cellspacing="0" cellpadding="5" align="center" class="ttext">
        <tr> 
          <td align="center" valign="top"> η εγγραφή : 
            <?php echo $TITLE ?>
            διαγράφηκε από τη βάση </td>
        </tr>
      </table>
                  
      <p>&nbsp;</p>
    </td>
  </tr>
</table>

<?php
} else {	
	

?>
<?php
	 	$result = mysql_query("SELECT * FROM  BOOKING  WHERE ID=$ID",$dbh);
			$myrow=mysql_fetch_array($result); 
			$TITLE=$myrow['TITLE'];
?><form name="newproductform1" method="post" action="<?php echo $PHP_SELF ?>" enctype="multipart/form-data">
  <table width="560" border="0" cellspacing="0" cellpadding="0" align="center" class="ttext">
    <tr> 
      <td colspan="2"> 
        <div align="center">ΔΙΑΓΡΑΦΗ BOOKING</div>
      </td>
    </tr>
    <tr> 
      <td colspan="2">
        <p>Αν θέλετε να διαγραφεί η εγγραφή BOOKING : 
          <?php echo $TITLE ?>
          πατήστε το κουμπί (submit)</p>
        <p><input type="hidden" name="ID" value="<?php echo $ID ?>">
        <input type="hidden" name="TITLE" value="<?php echo $TITLE ?>"></p>
      </td>
    </tr>
    <tr> 
      <td width="192"> 
        <input type="submit" name="submit" value="Submit">
      </td>
      <td width="368">&nbsp;</td>
    </tr>
  </table>

</form>
<?php } ?>

</body>
</html>
