Ver Mensaje Individual
  #2 (permalink)  
Antiguo 05/10/2005, 05:26
Avatar de gonzalezmfrank
gonzalezmfrank
 
Fecha de Ingreso: julio-2005
Ubicación: Maracaibo - Venezuela
Mensajes: 266
Antigüedad: 18 años, 9 meses
Puntos: 0
Revisa el numero de registros:

$sql = mysql_query("select nombre, email from amigos order by nombre",$conexion);
$numeroRegistros=mysql_num_rows($sql);

$numeroRegistros--; // resta uno
$reg_leido=0
Y luego realizas un while

while($row = mysql_fetch_array($sql)){
$reg_leido++;
if $numeroRegistros !=$reg_leido {
$nombre = $row["nombre"];
$email = $row["email"]; }
}

Espero te sirva.....