require ('conexion.php'); $id = isset($_GET['id']) ? (int)$_GET['id'] : 0; if ($id <= 0) { header('Location: index.php'); exit; } ?> $SQLquery = "SELECT * FROM revistas where re_id=?"; $stmt = $con->prepare($SQLquery); $stmt->execute([$id]); $SQLconsulta = $stmt->fetch(PDO::FETCH_ASSOC); ?>
