Ver Mensaje Individual
  #9 (permalink)  
Antiguo 21/05/2009, 09:41
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 18 años
Puntos: 2135
Respuesta: Como averigüo la próxima id

Si es con MySQL puedes usar esta consulta:
Código sql:
Ver original
  1. SELECT LAST_INSERT_ID() + 1

Saludos.