Ver Mensaje Individual
  #2 (permalink)  
Antiguo 17/11/2011, 21:05
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: Transacciones + PDO

Si usas PDO ya tienes ese control, solo engloba todas tus operaciones en un try/catch, antes de iniciar registra el beginTransaction() y al finalizar tu try haces el commit, en el bloque catch pones el rollback.