[Solved] Not getting column from database correct? |
I have created a set_language library where I can get the language code from my setting table and at the moment it is set as en.
So when I do this <?php echo $this->set_language->get_lang() ;?> it echos out en which is correct. How ever when I try to get the directory value from my language table where code is en it does not return value. It should return directory name english. What have I done wrong on my lang() function I have attached two images of database. PHP Code: <?php Quote:Error Number: 1064 Any suggestions thanks in advance.
There's only one rule - please don't tell anyone to go and read the manual. Sometimes the manual just SUCKS!
It did not work with the db select for some reason so just went with db get and where
PHP Code: <?php
There's only one rule - please don't tell anyone to go and read the manual. Sometimes the manual just SUCKS!
|
Welcome Guest, Not a member yet? Register Sign In |