Ver Mensaje Individual
  #4 (permalink)  
Antiguo 01/05/2010, 17:48
Avatar de ASCENDEDMASTERS
ASCENDEDMASTERS
 
Fecha de Ingreso: julio-2005
Ubicación: Pergamino, Buenos Aires
Mensajes: 302
Antigüedad: 18 años, 9 meses
Puntos: 1
Respuesta: Aparecen solos varios <br> solos

Mira, ahora les pongo el codigo php de ese sector, pero vean este simple hecho:

1º Le haces click derecho y miras el codigo fuente en firefox y no aparecen los <br>
2º en IE si
3º guardas la pagina con cualquier navegador y cuando miras el codigo fuente estan los <br>
4º ahora entenderan lo que digo:

Si tenes este codigo

Código PHP:
$var='HOLA CHICOS';

echo 
$var
y al imprimirlo te muestra

Código HTML:
<br> <br> <br> <br> <br>    HOLA CHICOS
entonces vos decis, bueno, hagamos una cosa. Le pondre una marca al inicio de la cadena y por lógica si los br aparecen antes de la marca entonces hay algo que interfiere el valor de la variable mientras se imprime en el navegador, caso contrario ...

entonces, hago lo siguiente:

Código PHP:
$var='@1@HOLA CHICOS';

echo 
$var
Imprime (Sorpresa!):
Código HTML:
@1@<br> <br> <br> <br> <br>    HOLA CHICOS

la logica sería que los <br> aparezcan al inicio de $var o al final, pero no entre medio de su contenido!

este es el codigo real:

Código PHP:
$mostrar_entrevista_famosa='<table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><table width="100%" border="0" cellpadding="0" cellspacing="0" background="images/fondo_entrevistas_bandas.jpg">
          <tr>
            <td><img src="images/punto.gif" width="1" height="44" /></td>
            <td><div align="center"><b>'
.sale($tt).'</b> ('.$vf.' visitas - '.$vr.' lecturas)</div></td>
            <td><img src="images/punto.gif" width="1" height="44" /></td>
          </tr>
          <tr>
            <td><img src="images/punto.gif" width="1" height="273" /></td>
            <td><table width="15%" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td><div align="center">
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td width="3%"><img src="images/contorno_foto_entrevistas_1.gif" width="10" height="10" /></td>
                        <td width="93%" background="images/contorno_foto_entrevistas_2.gif"><img src="images/contorno_foto_entrevistas_2.gif" width="10" height="10" /></td>
                        <td width="4%"><img src="images/contorno_foto_entrevistas_3.gif" width="10" height="10" /></td>
                      </tr>
                      <tr>
                        <td background="images/contorno_foto_entrevistas_8.gif"><img src="images/contorno_foto_entrevistas_8.gif" width="10" height="10" /></td>
                        <td><img src="'
.$dire_fotos_articulos.$sql2_['img'].'_.jpg" border=0></td>
                        <td background="images/contorno_foto_entrevistas_4.gif"><img src="images/contorno_foto_entrevistas_4.gif" width="10" height="10" /></td>
                      </tr>
                      <tr>
                        <td><img src="images/contorno_foto_entrevistas_7.gif" width="10" height="10" /></td>
                        <td background="images/contorno_foto_entrevistas_6.gif"><img src="images/contorno_foto_entrevistas_6.gif" width="10" height="10" /></td>
                        <td><img src="images/contorno_foto_entrevistas_5.gif" width="10" height="10" /></td>
                      </tr>
                    </table>
                </div></td>
              </tr>
              <tr>
                <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td width="7%" background="images/contorno_foto_entrevistas_8.gif"><img src="images/contorno_foto_entrevistas_8.gif" width="10" height="10" /></td>
                      <td width="86%"><div align="center"></div></td>
                      <td width="7%" background="images/contorno_foto_entrevistas_4.gif"><img src="images/contorno_foto_entrevistas_4.gif" width="10" height="10" /></td>
                    </tr>
                    <tr>
                      <td background="images/contorno_foto_entrevistas_8.gif">&nbsp;</td>
                      <td width="86%"><div align="center"><i>'
.$artista.'</i></div></td>
                      <td width="7%" background="images/contorno_foto_entrevistas_4.gif">&nbsp;</td>
                    </tr>
                    <tr>
                      <td><img src="images/contorno_foto_entrevistas_7.gif" width="10" height="10" /></td>
                      <td background="images/contorno_foto_entrevistas_6.gif"><img src="images/contorno_foto_entrevistas_6.gif" width="10" height="10" /></td>
                      <td><img src="images/contorno_foto_entrevistas_5.gif" width="10" height="10" /></td>
                    </tr>
                </table></td>
              </tr>
            </table></td>
            <td><img src="images/punto.gif" width="1" height="273" /></td>
          </tr>
          <tr>
            <td><img src="images/punto.gif" width="1" height="1" /></td>
            <td><img src="images/punto.gif" width="600" height="1" /></td>
            <td><img src="images/punto.gif" width="1" height="1" /></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td>'
.showent($show).'</td>
      </tr>
    </table>'

__________________
Dios es la unica fuente de todo bien.