Ver Mensaje Individual
  #5 (permalink)  
Antiguo 16/03/2008, 18:42
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 17 años, 11 meses
Puntos: 2135
Re: Tabla a lo excel (encabezado fijo)

Código PHP:
echo "<table>";  
  echo 
"<tbody id='encabezado'>";
  echo 
"<tr>";
  echo 
"<td bgcolor='#FF0000'<div align='center'><span class='Estilo3'>Modelo</span></div></td>";
  echo 
"<td bgcolor='#FF0000'<div align='center'><span class='Estilo3'>Núm. Serie</span></div></td>";

  echo 
"</tr>";
  echo 
" </tbody>";
  echo 
"<tbody id='contenido' style='height: 20px; overflow: auto'>";
while(
$MostrarFila=mysql_fetch_array($result))

 {
  echo 
"<tr>";
 echo 
"<td><center><font size=2>".$MostrarFila['Modelo']."</font></center></td>";
  echo 
"<td><center><font size=2>".$MostrarFila['Serie']."</font></center></td>";
  echo 
"</tr>";
 }
 echo 
"</tbody>";
 echo 
"</table></center>"
Saludos.