Hello This is a conceptual question mostly.
I have written a stored procedure in mysql that works correctly and returns the result I am expecting. I can then call that SP from a codeiigniter library I wrote. It gives the correct result to the server and then the correct data can be displayed to the client. However, if I attempt to hit the back button or refresh the page, I receive the following error:
A Database Error Occurred
Unable to select the specified database: stage
Filename: C:\xampp\htdocs\website\Web\system\database\DB_driver.php
Line Number: 140
I’m not sure where the problem is originating. I’m worried that it is a configuration issue, or something like that. I’m using codeigniter V 2.0.1. Does anyone have any similar experiences with SPs in CI? Thank you.
So the problem was related to the problem listed here:
http://codeigniter.com/forums/viewthread/71141/
This ended up being a case where xampp made it so that these errors would not resolve as normal, leading me to believe that this was some other issue. By setting my database config file to use mysqli and by building a hook into the core to modify the way codeigniter handles queries returned from mysqli stored procedures everything was able to work together. Thank you for your help everyone, it helped me find the true source of the problem.