Welcome Guest, Not a member yet? Register   Sign In
Database Error: Show Line Number
#2

[eluser]John_Betong[/eluser]
A bit more information would be helpful.

Can you show a typical error.

Is it your code, GIGO?

Are you checking for results?

If you are not using a log file then you should.

Try this:
Code:
// Test for YOUR_EXPECTED RESULT
// varies for updates, inserts, finding counting rows
//
if (! YOUR_EXPECTED RESULT)
  {
    log_message('ERROR', __LINE__ .': ' .__METHOD__);
    log_message('ERROR', $this->db->last_query());
  }

Also take a look at the help file on Transactions.
 
 
 


Messages In This Thread
Database Error: Show Line Number - by El Forum - 09-23-2010, 05:36 PM
Database Error: Show Line Number - by El Forum - 09-24-2010, 06:16 AM
Database Error: Show Line Number - by El Forum - 09-24-2010, 09:10 AM
Database Error: Show Line Number - by El Forum - 09-26-2010, 09:21 PM
Database Error: Show Line Number - by El Forum - 09-27-2010, 06:25 AM
Database Error: Show Line Number - by El Forum - 09-27-2010, 08:48 AM
Database Error: Show Line Number - by El Forum - 09-27-2010, 09:56 AM
Database Error: Show Line Number - by El Forum - 09-27-2010, 10:04 AM
Database Error: Show Line Number - by El Forum - 09-27-2010, 11:00 AM
Database Error: Show Line Number - by El Forum - 09-27-2010, 11:07 AM
Database Error: Show Line Number - by El Forum - 11-23-2010, 10:14 AM
Database Error: Show Line Number - by El Forum - 11-23-2010, 10:44 AM
Database Error: Show Line Number - by El Forum - 12-06-2012, 11:33 AM
Database Error: Show Line Number - by El Forum - 12-11-2012, 05:53 AM



Theme © iAndrew 2016 - Forum software by © MyBB