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: |
Messages In This Thread |
How to get database stuff by using customized connection - by chan15 - 03-18-2016, 09:41 AM
|