• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to know if stored procedure is successful in codeigniter?

#1
[eluser]bleu[/eluser]
How to know if stored procedure is successful in codeigniter?

I am running my stored procedure like

Code:
$query= $this->db->query('call procedure(dsds)');

$query does not return 1 and affected_rows returns -1

#2
[eluser]vitoco[/eluser]
my solution was create a 'sp_log' table to log the SP internal results with inserts, then read it from CI.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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