Ver Mensaje Individual
  #4 (permalink)  
Antiguo 25/05/2006, 15:35
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 20 años, 4 meses
Puntos: 2135
puedes usar:
Código PHP:
$query = "SELECT MAX(posicion) FROM imagenes";
$result = mysql_query( $query );
$posicion = mysql_fetch_array( $result );
$posicion = $posicion[0]++;