Update search.php

fixed for loop skipping first page of results