I need to create a page that
You can use a spatial index and search for a 2d range,i.e. bounding box. For example with the MySQL spatial extension. You can also try my hilbert curve class (phpclasses.org) it uses a quadkey with a range search and it's a pure php solution. You can also try a quadtree it has some better perfomance over a r-tree.