PHP - Como fijar una tabla

 
Vista:

Como fijar una tabla

Publicado por juans (6 intervenciones) el 17/04/2006 15:39:40
Me gustaria saber como puedo fijar la tabla a una medida especifica ya que cuando le pongo un texto demaciado largo se me sale hacia los lados en vez bajar a otra linea
<?php
$id= $_GET['id'];
$link = @mysql_connect ("localhost", "rotaryto_rotaryt", "123456");
$conex=@mysql_select_db("rotaryto_bd",$link);

$qry = "SELECT * FROM archivos where id= $id";
$res = mysql_query($qry);

print ("<TABLE BORDER=0 WIDTH= \"75%\" CELLSPANCING=2 CALLPANDING= 2 ALIGN=CENTER <\n");
print ("<TR ALIGN=CENTER VALIGN= TOP >\n");
print ("<TD ALIGN=CENTER VALIGN= TOP>Resumen</TD>\n");
while ($row = mysql_fetch_array($res)){
print ("<TR ALIGN=CENTER VALIGN= TOP>\n");
print ("<TD ALIGN=CENTER VALIGN= TOP><strong>$row[titulo] </strong></TD>");
print ("</TABLE>\n");

}
mysql_close($link);
?>
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:Como fijar una tabla

Publicado por atak (95 intervenciones) el 17/04/2006 16:38:27
Hola Juans

Prueba con este codigo :


<?php
$id= $_GET['id'];
$link = @mysql_connect ("localhost", "rotaryto_rotaryt", "123456");
$conex=@mysql_select_db("rotaryto_bd",$link);

$qry = "SELECT * FROM archivos where id= $id";
$res = mysql_query($qry);

echo "<table width='75' height='44' border='1' align='center'>";
echo " <tr>"
echo " <td width='65' valign='top'>Resumen</td>";
echo " </tr>";
while ($row = mysql_fetch_array($res))
{
echo " <tr>";
echo " <td width='65'><div align='center'>".$row[titulo]."</div></td>";
echo "</tr>";
}
mysql_close($link);
echo "</table>";
?>


Salu2.
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

RE:Como fijar una tabla

Publicado por juand (6 intervenciones) el 17/04/2006 19:42:45
echo " <td width='65' valign='top'>Resumen</td>";
en esa linea hay un problema
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar