Ver Mensaje Individual
  #3 (permalink)  
Antiguo 03/09/2008, 09:00
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 18 años, 8 meses
Puntos: 2135
Respuesta: Asignar un numero

Código PHP:
$result mysql_query("SELECT DISTINCT apellido FROM usuarios");
$i 1;
     while(
$row mysql_fetch_array($result)) 
          {
                 echo 
$i " - "  $row['apellido'];
                 
$i++;
          } 
Saludos.