Intersting approach. I am pretty new to the whole php coding, so this is part of my learning experience. Anyway, I am not familiar with the substr much. I just did some reading on it and got a little more out of it, though it didn't quite work out with my code. When I replaced the code you pointed out:
- Code: Select all
$twodigits = substr($_POST['zip_code'], 2);
With the substr you provided, it simply displayed all results in the database. I will look into it more, but if you have any suggestions I would welcome them. Thanks! SO much to learn...