Ver Mensaje Individual
  #4 (permalink)  
Antiguo 07/03/2011, 12:18
morcock
 
Fecha de Ingreso: octubre-2010
Mensajes: 13
Antigüedad: 13 años, 7 meses
Puntos: 0
Respuesta: problema tabla php html css

Hola de nuevo una vez que he quitado el fin de tabla lo que no sale es la informacíon:

El código ha quedado así:

<!--------CONSULTA POR ID, EMAIL DESTINO, EMAIL ORIGEN Y NOMBRE DEL FICHERO DEL MENSAJE------->
<HTML>
<HEAD>
<TITLE>CONSULTA POR ID, EMAIL DESTINO, EMAIL ORIGEN Y NOMBRE DEL FICHERO DEL MENSAJE</TITLE>
<style type=text/css>
.fila { font-family:Verdana; font-size:12px }
.celdaColor { background-color: #EEEEEE; }

body,td,th {
font-family: Tahoma;
font-size: 9pt;
color: #666666;
}
.bordered {
border-width: 1px 1px 1px 1px;
border-spacing: 0px 0px;
border-style: solid solid solid solid;
border-color: #CBCBCB #CBCBCB #CBCBCB #CBCBCB;
border-collapse: collapse;
}
.red_small {
color: #990000;
font-size: 8pt;
}
.red_normal {
color: #990000;
}
.green_normal {
color: #009900;
}
.green_small {
color: #009900;
font-size: 8pt;
}
.blue_small {
color: #000099;
font-size: 8pt;
}

</style>
</HEAD>
<BODY>

<?php
include('conexion.inc.php'); //archivo de conexion
$link=Conectarse(); //funcion que contiene los datos de conexion
$sql="select hm_accounts.accountid, hm_accounts.accountaddress, hm_messages.messagefrom, hm_messages.messagefilename
from hm_accounts, hm_messages
where hm_accounts.accountid = hm_messages.messageaccountid
order by hm_accounts.accountid";

$result = mysql_query($sql) or die ("La siguiente consulta tiene algun error:<br><b>$sql</b></br>");

?>
<table align="center" class="bordered" width="1024" border="1" cellpadding="4" cellspacing="4">
<tr>
<td colspan="4" align="center"><strong>CONSULTA POR ID, EMAIL DESTINO, EMAIL ORIGEN Y NOMBRE DEL FICHERO DEL MENSAJE</strong></td>
</tr>
<tr>
<th>ID cuenta</th><th>E-Mail Destino</th><th>E-Mail Origen</th><th>Nombre del fichero del mensaje</th>
<th align="right"></th>
</tr>
<?php
while($row=mysql_fetch_array($result))
//{print_r($row); }
{
?>
<tr>
<td><?php{$row['hm_accounts.accountid']}?></td>
Si quito los <?php y ?> tampoco sale nada
<td><?php{$row['accountaddress']}?></td>
<td><?php{$row['messagefrom']}?></td>
<td><?php{$row['messagefilename']}?></td>
</tr>
<?php
}
?>

Ya me he quedado estancado por mucho que toco o no sale nada o sale los nombres de los campos.

Os agradezco vuestra ayuda.