Database insert randomly returns false -- $this->db->insert |
[eluser]blasto333[/eluser]
I know there is not that much context, but I am been banging my head against the wall on this one for some time now...any ideas? Code: function save(&$person_data, &$employee_data,&$permission_data,$employee_id=false)
[eluser]jedd[/eluser]
[quote author="blasto333" date="1259734003"] I know there is not that much context, but I am been banging my head against the wall on this one for some time now...any ideas? [/quote] What does the [url="/user_guide/general/profiling.html"]Profiler[/url] reveal about the failing cases? Code: function save(&$person_data, &$employee_data,&$permission_data,$employee_id=false) {blink!}
[eluser]blasto333[/eluser]
http://home.chrismuench.com/error.html http://home.chrismuench.com/success.html
[eluser]jedd[/eluser]
Time to crank up your database logging! phppos_employees.person.id isn't UNIQUE or something silly like that? Probably unrelated but person_id seems to go from 1 to -1 through the course of your transaction. I'm guessing -1 is your test account. |
Welcome Guest, Not a member yet? Register Sign In |