Update search.php

Search code re-written, removed QueryBuilder() function that wasn't working and added some security measures.