Ver Mensaje Individual
  #2 (permalink)  
Antiguo 22/05/2004, 09:57
Geri
 
Fecha de Ingreso: noviembre-2003
Ubicación: Torrelodones
Mensajes: 134
Antigüedad: 20 años, 5 meses
Puntos: 0
Puede ser porque el codigo html metido dentro de PHP
siempre que lleve comillas hay que poner esta barra \. Entonces
te quedaria de la siguiente forma

<table width=\"405\" border=\"0\" cellpadding=\"0\" cellspacing=\"1\" bgcolor=\"#000000\">

Deberias poner una barra antes de dond empiezan las comillas
y otra antes de donde terminan y asi en todo el codigo html
que tienes dentro del PHP.

Otra opcion es cerrar el codigo PHP antes del html, es decir
Código PHP:
<?
Conexion con la BD

$conecta 
mysql_connect($host,$user,$pass);
mysql_select_db($dbname,$conecta);
$query "select * from videos order by id desc"
$resp mysql_query($query); 
while (
$datos mysql_fetch_array($resp)) { 
    if (
$mostrar 0) { 
        @
$imagen1 getimagesize(''.$datos[imagen1].'');
        @
$imagen2 getimagesize(''.$datos[imagen2].'');
        @
$imagen3 getimagesize(''.$datos[imagen3].'');
        @
$imagen4 getimagesize(''.$datos[imagen4].'');
//Se cerraria aqui el codigo PHP y lo siguiente ya seria todo HTML
?>
         
<table width="405" border="0" cellpadding="0" cellspacing="1" bgcolor="#000000">
  <tr>
    <td width="403" height="171" valign="top"> 
      <table width="403" border="0" cellpadding="0" cellspacing="0" bgcolor="#F2F2F2">
        <tr> 
.
.
.
.
Espero haberme sabido explicar.

Un saludo
__________________
Conoce gente nueva, haz amigos, aplicaciones para moviles, juegos online,... Y todo gratis!!! :si: www.cuelate.com