One of the things you can do is to select one field and see if it returns any results..for example
Code:
SELECT zip FROM agencies
If there is no result return, it's telling me that there is no data in this field.
If there is result, you may try to type out all the fields' name instead of using *
That's how i usually trouble shoot the problem.
if possible, please show the whole code for result.php and we can take a look.