How to get database stuff by using customized connection - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: How to get database stuff by using customized connection (/showthread.php?tid=64659) |
How to get database stuff by using customized connection - chan15 - 03-18-2016 I want to auto save the sql query every time, I found this article, if I do everything by the page it will work, but the problem is, I have master and slave database, therefore I have to connect to database like: model/Users.php PHP Code: I want to auto save the sql query every time, I found this article, if I do everything by the page it will work, but the problem is, I have master and slave database, therefore I have to connect to database like: Then I adjust demo code like: PHP Code: <?php Of course I got error message Quote: |