How pagination insert on my localhost site

We are here to help, not to spoon-feed.

That being the case, you are surely capable of replacing one line of PHP with another.