Well, how do you expect PHP to know what you mean by all the quotes in this:
$query = "SELECT * FROM address WHERE state LIKE "i"";
try using single-quotes in SQL:
$query = "SELECT * FROM address WHERE state LIKE 'i'";
Also note that 'LIKE' without wildcards is the same as '=', it will not search for substrings, only for exact matches.