Ver Mensaje Individual
  #3 (permalink)  
Antiguo 05/08/2011, 11:32
WinderJerter
 
Fecha de Ingreso: agosto-2009
Mensajes: 292
Antigüedad: 14 años, 8 meses
Puntos: 5
Respuesta: Problemas con INNER JOIN

Cita:
Iniciado por gnzsoloyo Ver Mensaje
Estás repitiendo la invocación a una tabla innecesariamente , y te falta el INNER JOIN respectivo:
Código MySQL:
Ver original
  1.     TMP_IMAGES TI
  2.     INNER JOIN
  3.     THUMBNAILS T ON TI.ID = T.ID
  4.     INNER JOIN
  5.     IMAGES I ON T.ID = I.ID
  6.     TI.ID AND I.ID = '.mysql_real_escape_string($_GET['id']).'
Gracias gnzsoloyo por responder, lo he intentado asi como me pusiste y no trae ningun resultado, esto lo compruebo asi

Código PHP:
Ver original
  1. <?php
  2.  
  3. if(mysql_num_rows($result) == 0) {
  4.     echo "<div class=\"error\">Hmm, the image requested can’t be found in the server.</div>";
  5.     exit;
  6. }
  7.  
  8. ?>

Saludos!