![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
01/06/2012, 08:03
|
| | Fecha de Ingreso: junio-2011
Mensajes: 14
Antigüedad: 13 años, 7 meses Puntos: 2 | |
Respuesta: Cual es mi error? en PHP Version 5.3.8 Al ejecutar mi consulta en PHPMyadmin me manda el siguiente error:
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '$sql="select h.foto,c.texto from header as h,contenido as c where h.id_menu=".$_' at line 1
Es por ellos que creo que es la version de PHP que uso.
La consulta es:
$sql="select h.foto,c.texto from header as h,contenido as c where h.id_menu=".$_GET["id"]." and c.id_menu=".$_GET["id"]."";
Espero me puedan ayudar gracias!! |