• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to display mysql errors in CI?

#1
[eluser]Computerzworld[/eluser]
Hello,
I am using CI database class for running queries. How can I display appropriate mysql errors exactly like
Code:
die(mysql_error())
is doing? Is there any way to check it using CI? Please help me. Thanks in advance.

#2
[eluser]pistolPete[/eluser]
Enable db_debug:
Code:
$db['default']['db_debug'] = TRUE;
User guide

#3
[eluser]Computerzworld[/eluser]
thanks for the reply... it worked!!!!


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.