Query problem with alias |
[eluser]shinokada[/eluser]
Can I use alias? I get an query error. How can I use alias in CI? Code: function generateTree(&$tree, $parentid = 0) {
[eluser]Jeroen Brussich[/eluser]
Please post more information. You give as almost nothing to work with... Read this excellent post about asking good questions. But for now, try adding FALSE as parameter so your query won't be protected by backticks: Code: $this->db->select('M.*, P.name AS PageName', FALSE);
[eluser]shinokada[/eluser]
I want to join a pages table and menu table. Code: CREATE TABLE IF NOT EXISTS `pages` ( Code: CREATE TABLE IF NOT EXISTS `menus` ( I have errors with the following SQL in a model. If I take out join part, it works, but not with join. How can I join them? Code: function generateTree1(&$tree, $parentid = 0) { |
Welcome Guest, Not a member yet? Register Sign In |