Loadmore search results not showing new results?

It seems you have hardcoded your pageNumber as 1 always.

var  pageNumbers = 1; 

So every time you click on “Load More” this value will be incrementing even if you are searching for new term.

My approach would be to store the pageNumber value in “Load More” button.

<button data-pageNumber="1" id="load-more">Load More</button>

And when you click on load more just update the data-pageNumber to +1.

And if you do a new search then update the value back to “1”.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)