Make locationselect use bind_result instead of get_result for older PHP version compatability
Refactor adminhome.php
Use bind_result in place of get_result in adminhome.php