![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
27/02/2012, 14:41
|
![Avatar de repara2](http://static.forosdelweb.com/customavatars/avatar369161_2.gif) | | | Fecha de Ingreso: septiembre-2010 Ubicación: München
Mensajes: 2.445
Antigüedad: 14 años, 4 meses Puntos: 331 | |
Respuesta: Consulta else if Las llaves no coinciden:
Código PHP:
Ver original<?php $usuario = $_COOKIE['loggedin']; if (!isset($_COOKIE['loggedin'])) die("<center><img src='images/error.png'><br><div id='miclase'>No te has identificado, <a href=index.html>click acá</a> para iniciar sesión.</center>"); include ("config.php"); echo "Usuario: <input type='text' name='matricula' size='8' readonly value='$usuario'> "; echo "Fecha "; echo $fecha; echo "<br><br>"; $queEmp = "SELECT * FROM notas_cues"; if ($totEmp> 0) { $not = $rowEmp['nota']; $user = $rowEmp['usuario']; $fech = $rowEmp['fecha']; if ($user == $usuario && $fech == $fecha){ echo "Ya Te Evaluaste Hoy tu nota es $not <br><br>"; echo "<a href='form.php'>Volver</a>"; } } }//if ($totEmp> 0) { else{ echo "error"; } } ?>
__________________ Fere libenter homines, id quod volunt, credunt. |