Welcome Guest, Not a member yet? Register   Sign In
Ajax autocomplete not case insensitive
#7

[eluser]zulubanslee[/eluser]
That did not work. Here is what I ended up going with.

Code:
$q=$_POST["city_string"];
   $a = '';
   $sql= "SELECT DISTINCT city, state_name
      FROM zip_code
      WHERE city  COLLATE UTF8_GENERAL_CI LIKE ".$this->db->escape($q.'%')."";  
      
  $city_state_result = $this->db->query($sql, array($q));


Messages In This Thread
Ajax autocomplete not case insensitive - by El Forum - 05-20-2012, 05:07 PM
Ajax autocomplete not case insensitive - by El Forum - 05-20-2012, 05:16 PM
Ajax autocomplete not case insensitive - by El Forum - 05-20-2012, 06:35 PM
Ajax autocomplete not case insensitive - by El Forum - 05-20-2012, 07:12 PM
Ajax autocomplete not case insensitive - by El Forum - 05-20-2012, 07:27 PM
Ajax autocomplete not case insensitive - by El Forum - 05-20-2012, 08:12 PM
Ajax autocomplete not case insensitive - by El Forum - 05-20-2012, 08:25 PM
Ajax autocomplete not case insensitive - by El Forum - 05-21-2012, 12:24 AM
Ajax autocomplete not case insensitive - by El Forum - 05-21-2012, 09:57 AM
Ajax autocomplete not case insensitive - by El Forum - 05-21-2012, 11:08 AM
Ajax autocomplete not case insensitive - by El Forum - 05-23-2012, 03:08 AM



Theme © iAndrew 2016 - Forum software by © MyBB