Implemented dynamic tables in search.php