Hi. I had to move my php code from an apache run server to a Windows 2003 server with IIS and I've run into a problem with one of my select statements. It isn't returning a value. See code below.
$NotWorking = "SELECT MIN(ZIPCode) FROM zips where CityName like '".$city."' and StateCode='".$state."' limit 1";
$Working = "SELECT MIN(ZIPCode) FROM zips where CityName like 'ALBERTVILLE' and StateCode='AL' limit 1";
When I do an echo statement on $NotWorking I get the exact same select statement as $working but my result value is blank whereas the $Working select statement gives me the correct zip code.
Any Ideas?