regitros en varias columnas
Publicado por FELIPE LARGACHA (14 intervenciones) el 12/12/2005 01:24:12
es que no he podido que salgan los registros de la base de datos en varias columnass, solo he podido en una sola aqui esta el codigo alguien me podria decir como se hace eso:
<html>
<body>
<?php include("conec.php");
$link=Conectarse();
$result=mysql_query("select * from tablacurso",$link);
?>
<TABLE BORDER=1 CELLSPACING=1 CELLPADDING=1> <TR> <TD> Nombre</TD> <TD> Dirección </TD> <TD> Telefono </TD> <TD> Email </TD> <TD> Imagen </TD> <TD> Borra </TD> </TR>
<?php while($row = mysql_fetch_array($result)) { printf("<tr><td> %s</td><td> %s </td><td>  ;%s </td><td> %s </td><td> %s </td>< /td><td><a href=\"borra.php?id=%d\">Borra</a></td></tr>", $row["nombre"],$row["direccion"],$row["telefono"],$row["email "],$row["imagen"],$row["ID"]); } mysql_free_result($result); ?> </table>
</body> </html>
¡¡¡¡¡¡¡¡POR FAVOR MANDAR UN EJEMPLO¡¡¡¡¡¡¡¡¡¡¡¡
<html>
<body>
<?php include("conec.php");
$link=Conectarse();
$result=mysql_query("select * from tablacurso",$link);
?>
<TABLE BORDER=1 CELLSPACING=1 CELLPADDING=1> <TR> <TD> Nombre</TD> <TD> Dirección </TD> <TD> Telefono </TD> <TD> Email </TD> <TD> Imagen </TD> <TD> Borra </TD> </TR>
<?php while($row = mysql_fetch_array($result)) { printf("<tr><td> %s</td><td> %s </td><td>  ;%s </td><td> %s </td><td> %s </td>< /td><td><a href=\"borra.php?id=%d\">Borra</a></td></tr>", $row["nombre"],$row["direccion"],$row["telefono"],$row["email "],$row["imagen"],$row["ID"]); } mysql_free_result($result); ?> </table>
</body> </html>
¡¡¡¡¡¡¡¡POR FAVOR MANDAR UN EJEMPLO¡¡¡¡¡¡¡¡¡¡¡¡
Valora esta pregunta


0