Ver Mensaje Individual
  #5 (permalink)  
Antiguo 24/03/2008, 08:57
Avatar de jaronu
jaronu
 
Fecha de Ingreso: febrero-2008
Mensajes: 2.183
Antigüedad: 16 años, 2 meses
Puntos: 52
Re: no se muestra la Imagen

has provado a quitar el While??

o

a poner el echo dentro del while??


Código PHP:

<td colspan="3"><span class="textoTitulos"> 
          <?php if ($totalRows_Recordset1!=0){ ?> // no se si choca aqui pero = si hay imagen no la muestra 
        </span></td> 
      </tr> 
      <tr> 
        <td colspan="3"><img src="images/dp.jpg" width="600" height="30" /></td> 
      </tr> 
      <tr> 
        <td colspan="3">&nbsp;</td> 
      </tr> 
      <tr> 
        <td width="14">&nbsp;</td> 
        <td width="430">Nombres:</td> 
        <td width="156" rowspan="8"><div align="center">  
<p>  
<?   
while ($temp mysql_fetch_array($sql))    
{    
if (empty(
$temp["imagen"]) || is_null($temp["imagen"]))    
  { 
$img "images/na.jpg";}    
  else    
  { 
$img $temp["imagen"];}      
  
echo 
'<img src ="images/$img" border="0"/>';

 } 
?> 

</p>  
</div>  
</td>  
      </tr> 
      <tr> 
        <td>&nbsp;</td> 
        <td><?php echo $row_Recordset1['nombres']; ?></td> 
        </tr> 
      <tr> 
        <td>&nbsp;</td> 
        <td>&nbsp;</td> 
        </tr> 
      <tr> 
        <td>&nbsp;</td> 
        <td>Apellidos</td> 
        </tr> 
      <tr> 
        <td>&nbsp;</td> 
        <td><?php echo $row_Recordset1['apellidos']; ?></td> 
        </tr>