Ver Mensaje Individual
  #2 (permalink)  
Antiguo 26/10/2011, 19:45
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 18 años
Puntos: 2135
Respuesta: Doble seleccion y mostrar imagenes

Te falta agregar $ a tu variable para que la transmitas a tu query:
Código PHP:
Ver original
  1. $codNoticia = $nt['idnoti'];
  2. $sqlfotos = "SELECT * FROM fotos WHERE id_foto=$codNoticia AND portada = true";

Saludos.