<?php
//CONEXION A LA BASE DE DATOS
include ("conexion.php");

//CAPTURA DE DATOS DEL URL
$id=strip_tags($_GET['idpaquete']);

//ELIMINACION DE DATOS EN TABLA 

$cons1="DELETE FROM contenido_tratamientocompleto WHERE idPaquete='$id'";
$res1=mysql_query($cons1,$conex) or die ("No se pudo eliminar cons1");

$cons2="DELETE FROM paquetes WHERE idPaquete='$id'";
$res2=mysql_query($cons2,$conex) or die ("No se pudo eliminar cons2");

$cons3="DELETE FROM contenido_paquete WHERE idPaquete='$id'";
$res3=mysql_query($cons3,$conex) or die ("No se pudo eliminar cons3");


mysql_close($conex);

?>
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>UCA :.</title>
<link href="ucaestilos.css" rel="stylesheet" type="text/css" />
</head>

<body>
<table width="800" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr>
    <td><img src="img/top02.jpg" width="800" height="100" /></td>
  </tr>
  <tr>
    <td><p>&nbsp;</p>
        <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td><div align="center"><img src="img/confproc.jpg"  /></div></td>
          </tr>
        </table>
      <br />
        <table width="200" border="0" align="center" cellspacing="10">
          <tr>
            <td width="97"><form id="form1" name="form1" method="post" action="main.php?a=32">
                <div align="center">
                  <p>
                    <input name="Submit" type="submit" class="boton2" value="Volver a paquetes y tratamientos" />
                  </p>
                </div>
            </form></td>
            <td width="93"><form id="form1" name="form1" method="post" action="main.php">
                <div align="center">
                  <p>
                    <input name="Submit2" type="submit" class="boton2" value="Volver a inicio" />
                  </p>
                </div>
            </form></td>
          </tr>
        </table>
      <p>&nbsp;</p>
      <table width="100%" border="0">
          <tr>
            <td height="22" bgcolor="#4E5B7B"><div align="center"><span class="style8">Universidad Cuauht&eacute;moc</span></div></td>
          </tr>
      </table></td>
  </tr>
</table>
</body>
</html>
