How to get database stuff by using customized connection |
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: |
Welcome Guest, Not a member yet? Register Sign In |