Ver Mensaje Individual
  #4 (permalink)  
Antiguo 02/09/2008, 19:08
DjKelvim
 
Fecha de Ingreso: junio-2008
Ubicación: Maracay
Mensajes: 52
Antigüedad: 15 años, 11 meses
Puntos: 0
Respuesta: Como relaciono 1 tabla con 5 tablas para consultar registros con JOIN

Gracias por la atencion Carxl y Genetix... por cierto acomode el codigo php revisenlo otra vez...pero el error es igual.
el error dice asi en el phpMyAdmin como me dijiste Carxl:

Error
consulta SQL:

SELECT *
FROM identificacion AS t1
INNER JOIN ( tipo AS t2, clase AS t3, marca AS t4, modelo AS t5, seccion AS t6)
ON t1.unidad = t2.codtipo, t1.unidad = t3.codclase, t1.unidad = t4.codmarca, t1.unidad = t5.codmodelo, t1.unidad = t6.codseccion
WHERE t1.unidad = $txtUnidad
LIMIT 0 , 30

MySQL ha dicho:

#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 '.codclase , t1.unidad = t4.codmarca , t1.unidad = t5.codmodelo , t1.unidad = ' at line 1


Ese es el error.

los scripts de php del formulario buscar estan bien ya los revise y el de conexion a la BD tambien....

Última edición por DjKelvim; 02/09/2008 a las 19:20