added search functionality to php scripts