CodeIgniter Forums
table not exits whit transacction? omg - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: table not exits whit transacction? omg (/showthread.php?tid=25271)



table not exits whit transacction? omg - El Forum - 12-06-2009

[eluser]tnathos[/eluser]
hi i try use transaction whit CI, i use this.

Code:
function abrir_transaccion()
    {
    
    $this->db->trans_begin();
    
    $this->db->insert('prm_premium',array(
    'idcliente' => $this->session->userdata('id'),
    'marca' => $this->input->post('marca'),
    'descripcion' => $this->input->post('descripcion'),
    'web' => $this->input->post('web'),
    'fechafinal' => $this->input->post('datepicker')));

    
    }

but when run the function... show me a error tell me what the table dont exists in to the database.. omg but the table if exist!


table not exits whit transacction? omg - El Forum - 12-06-2009

[eluser]Ben Edmunds[/eluser]
Does it do this if you don't use transactions?

Verify your database.php config file settings.


table not exits whit transacction? omg - El Forum - 12-07-2009

[eluser]tnathos[/eluser]
thanks.. but what i need chek in to database.php? what find?


table not exits whit transacction? omg - El Forum - 12-07-2009

[eluser]Ben Edmunds[/eluser]
Just try it without the transaction first and see what you get.


table not exits whit transacction? omg - El Forum - 12-07-2009

[eluser]tnathos[/eluser]
yeap.. i make a new procees without transaction.. but i need use tables whit innodb for handle reltions... and have the same problem.. when insert inno show me the same error.. and if insert mysam.. works.. what i need see in the database.php?

thanks!


table not exits whit transacction? omg - El Forum - 12-07-2009

[eluser]Ben Edmunds[/eluser]
That seems odd.

I'm not sure what to do then. Maybe someone else can help?


table not exits whit transacction? omg - El Forum - 12-09-2009

[eluser]tnathos[/eluser]
any have the same problem.. for any reason.. when handle tables innodb whit ci.. show me the error


table not exits whit transacction? omg - El Forum - 12-09-2009

[eluser]tnathos[/eluser]
guys help me... pls..