Ver Mensaje Individual
  #3 (permalink)  
Antiguo 18/10/2011, 14:27
Avatar de CesarHC
CesarHC
 
Fecha de Ingreso: junio-2011
Ubicación: localhost
Mensajes: 566
Antigüedad: 12 años, 11 meses
Puntos: 56
Respuesta: Redimensionar celdas en php

Tambien podrias usar css.

estilo.css
Código CSS:
Ver original
  1. .t1 {
  2.     width:100px;
  3.     height:100px;
  4. }

Código PHP:
Ver original
  1. while ($row = mysql_fetch_row($result)){
  2. echo "<tr> \n";
  3. echo "<td class='t1'>$row[0]</td> \n";
  4. echo "<td class='t1''>$row[1]</td> \n";
  5. echo "<td class='t1'>$row[2]</td> \n";
  6. echo "<td class='t1'>$row[3]</td> \n";
  7. echo "</tr> \n";
  8. }

Tendrias que llamarlo despues del <head>

Código HTML:
Ver original
  1. <link rel="stylesheet" type="text/css" href="../estilo.css"/>
__________________
Solo la práctica no te traicionara ¡¡¡¡¡¡

Seguir el camino tu debes PHP The Right Way.

Última edición por CesarHC; 18/10/2011 a las 14:35