Ver Mensaje Individual
  #2 (permalink)  
Antiguo 30/04/2012, 20:50
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 mostrar en php el último ID + 1

Haz un select max:
Código MySQL:
Ver original
  1. SELECT MAX(`id_factura`) + 1 FROM `facturas`