Ver Mensaje Individual
  #9 (permalink)  
Antiguo 13/08/2002, 07:13
LinDen
 
Fecha de Ingreso: mayo-2002
Mensajes: 28
Antigüedad: 21 años, 10 meses
Puntos: 0
Re: Funciones en PHP...

Cain te pego a continuación todo el código fuente...

<?php

include("conex.phtml");

$link=Conectarse();

$result=mysql_query("SELECT apellidos FROM prueba ORDER BY apellidos",$link);

?>

<TABLE BORDER=1 CELLSPACING=1 CELLPADDING=1>

<TR><TD> Nombre</TD><TD> Apellidos </TD></TR>

<?php



while($row = mysql_fetch_array($result)) {

printf("<tr><td> %s</td><td> %s </td></tr>", $row["Nombre"],$row["Apellidos"]);

}

mysql_free_result($result);

mysql_close($link);

?>

</table>


Este es el código que yo pongo, a ver si tengo que hacer algún cambio...
Gracias y saludos...