![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
23/08/2012, 12:44
|
![Avatar de Triby](http://static.forosdelweb.com/customavatars/avatar253769_17.gif) | Mod on free time | | Fecha de Ingreso: agosto-2008 Ubicación: $MX->Gto['León'];
Mensajes: 10.106
Antigüedad: 16 años, 6 meses Puntos: 2237 | |
Respuesta: Error al leer mensajes por un usuario Esto pasa cuando la consulta falla y entre la línea 65 y 67 tienes un mysql_query() que deberías tener más o menos así:
$res = mysql_query(/* aquí tu consulta */) or die(mysql_error());
Por cierto, también deberías indentar tu código, para que puedas identificar perfectamente las estructuras y te des cuenta cuáles líneas deberían ir dentro de if - then - else y cuales fuera. |