Ver Mensaje Individual
  #11 (permalink)  
Antiguo 03/10/2010, 12:15
Avatar de Pike
Pike
 
Fecha de Ingreso: agosto-2008
Ubicación: Por ahí
Mensajes: 251
Antigüedad: 15 años, 8 meses
Puntos: 1
Respuesta: problemas con echo en una tabla

LISTADO DE BECAS:

<table class="table">
<tr>
<th>id_beca</th>
<th>id_pais</th>
<th>nombre</th>
<th>tipo</th>
<th>descripcion</th>
<th>requisitos</th>
<th>link</th>
</tr>


<?php
//Llamamos a la bbdd para recoger toda la informacion y mostrarla
mysql_connect('localhost', 'pike', '****', '*****');
mysql_select_db("*****");
$query = "SELECT * FROM becas ORDER BY id_beca";
$respuesta= mysql_query($query);

while ($fila=mysql_fetch_array($respuesta))
{
<tr>
<td><?php echo $fila["id_beca"]?></td>
<td><?php echo $fila["id_pais"]?></td>
<td><?php echo $fila["nombre"]?></td>
<td><?php echo $fila["tipo"]?></td>
<td><?php echo $fila["descripcion"]?></td>
<td><div id="scrollable"><?php echo $fila["requisitos"] ?></div></td>
<td><?php echo $fila["link"]?></td>
</tr>


}

//$errorSelect = mysql_error();

mysql_close();
?>
</table>
este es el código,
PD: ¿que usais àra mostrar el cod en los post del foro? me imagino que para vosotros tal como muestro el cod en una m...