Ver Mensaje Individual
  #2 (permalink)  
Antiguo 28/02/2006, 09:07
Avatar de Maycol
Maycol
 
Fecha de Ingreso: diciembre-2001
Ubicación: Ávila (España)
Mensajes: 539
Antigüedad: 22 años, 4 meses
Puntos: 0
Yo haria lo siguiente:

Código PHP:
<?
$res
=mysql_query("SELECT id FROM claves",$link);
$row=mysql_fetch_array($res);
echo 
substr($row["id"],0,6);
?>
Pruebalo