Embedding wildcard '%' into a query string |
[eluser]Unknown[/eluser]
I am doing a search query Code: // Prepare query string But when I uncomment the preg_replace line, the '%' get escaped in the call. I have tried %% also to no avail. Any suggestions?
[eluser]DarkManX[/eluser]
http://ellislab.com/codeigniter/user-gui...tml#select look up for $this->db->like();
[eluser]Unknown[/eluser]
Thanks. I'm well aware of the documentation covering like. The problem is that if I add the wildcard %, it escapes it: (from the log) Code: ERROR - 2012-08-20 13:02:15 --> Query: SELECT * Code: RROR - 2012-08-20 13:04:00 --> Query: SELECT * |
Welcome Guest, Not a member yet? Register Sign In |