Ver Mensaje Individual
  #4 (permalink)  
Antiguo 14/11/2017, 10:38
Avatar de xfxstudios
xfxstudios
 
Fecha de Ingreso: junio-2015
Ubicación: Valencia - Venezuela
Mensajes: 2.448
Antigüedad: 8 años, 10 meses
Puntos: 263
Respuesta: Esto me graba dos veces los mismos datos

Prueba cambiando esto:
Código PHP:
Ver original
  1. $this->db->trans_start();

por esto:
Código PHP:
Ver original
  1. $this->db->trans_begin();


y esto:
Código PHP:
Ver original
  1. if ($this->db->trans_status() === false) {
  2.         return false;
  3.     } else {
  4.         return true;
  5.     }

por
Código PHP:
Ver original
  1. if ($this->db->trans_status()=== FALSE)
  2. {
  3.         $this->db->trans_rollback();
  4.         return false;
  5. }else{
  6.         $this->db->trans_commit();
  7.         return true;
  8. }
__________________
[email protected]
HITCEL