Multiple DB Where |
I am setting up my multiple site data in a custom config file and I able able to set data from database on my config file
But when I use multiple where it disables data I have tried or_where but then cancels out the default where How can I make my default where work but also work with my other id It can only seem to work with one website_id. Name of application > config > setting.php PHP Code: <?php
There's only one rule - please don't tell anyone to go and read the manual. Sometimes the manual just SUCKS!
To find out what CI's query builder is really doing, insert the following lines after $setting_query = $db->get();
PHP Code: echo $db->last_query(); You could also try to leave out the quotes around 0 in this line: PHP Code: $db->where('website_id', "0"); |
Welcome Guest, Not a member yet? Register Sign In |