$notaid = $_GET['notaid']; if (!strlen($notaid)) $notaid = $_POST['notaid']; header("location:/site/sp/nota/detalle/".$notaid."/detalle"); die; $vn = validar_numero($_GET['vn']); session_start(); include("includes/functions.inc.php"); $db = connect(); $comentar_id = validar_numero($_POST['comentar_id']); $comentar = validar_caracteres($_POST['comentar']); $titulo = campo_db($db, validar_caracteres($_POST['titulo'])); $mensaje = campo_db($db, validar_caracteres($_POST['mensaje'])); $firma = campo_db($db, validar_caracteres($_POST['firma'])); if (strlen($vn)) { $requiered = -1; } $destino = "nota.php?notaid=$notaid"; // include("includes/checklogin.php"); $notaid = campo_db($db, $notaid); if (strlen($comentar)) { $sql = "insert into comentarios_notas (id_nota, userid, titulo, mensaje, firma, estado, fecha)"; $sql .= " values ($notaid, " . $_SESSION['USERF']['id'] . ", $titulo, $mensaje, $firma, 0, now())"; mysqli_query($db, $sql); $gracias = 1; //$notaid = $comentar_id; } //if ($notaid == "") header("location:index.php"); //$notaid=0; $query="select * from notas$lang where notaid=$notaid and to_days(fecha_publicacion) <= to_days(now())"; $result=mysqli_query($db, $query); $row_nota=mysqli_fetch_array($result); $title = $row_nota['titulo']; $mt_keywords = str_replace(" ", ",", $row_nota['titulo']); $mt_description = str_replace(" ", ",", $row_nota['copete']); $mt_description = str_replace('"', '', $row_nota['copete']); $notaid = sacar_campo_db($notaid); include("temp/header-otros.php"); ?>
Notice: Undefined variable: row_nota in /var/www/htdocs/latinspots.com/website/nota.php on line 80 |