CI 3.0 query builder: Is it possible not to escape string passed to from method? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: CI 3.0 query builder: Is it possible not to escape string passed to from method? (/showthread.php?tid=61118) |
CI 3.0 query builder: Is it possible not to escape string passed to from method? - El Forum - 09-22-2014 [eluser]navihtot[/eluser] Hi, If I call Code: $this->db->from('SELECT CONCAT_WS(" ", lastname, firstname) FROM usr_user').. Code: SELECT CONCAT_WS(" ", `lastname`, `firstname)` FROM `usr_user` ... This is a simplified example my query is actually much more complex CI 3.0 query builder: Is it possible not to escape string passed to from method? - El Forum - 09-22-2014 [eluser]navihtot[/eluser] I'm now doing it with override of mysqli driver: Code: public function from($from, $escape = TRUE) but I would rather do this in some better way, if there is one... CI 3.0 query builder: Is it possible not to escape string passed to from method? - El Forum - 09-24-2014 [eluser]navihtot[/eluser] anybody? |