//Inicio la sesión session_start(); //COMPRUEBA QUE EL USUARIO ESTA AUTENTIFICADO if ($_SESSION["autentificado"] != "SI") { //si no existe, envio a la página de autentificacion header("Location: login.php"); //ademas salgo de este script exit(); } include('../db.php'); $table=$_GET['table']; $catpro=$_GET['catpro']; $productosubcat=$_GET['productosubcat']; $productoscat=$_GET['productoscat']; ?>