954,604 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

google maps api help with search!

Hello. I'm new to php and I'm just getting my foot wet. But I've been going through lots of tutorial and I was looking into this google tutorial: http://code.google.com/apis/maps/articles/phpsqlsearch.html#findnearsql and its what I wanted it to do. Calculate a nearby store locator.

But I was curious about how to modify it by instead of outputting the data like it in the tutorial, but outputting against some kind of search term like in yelp.com where if you search a restaurant and have location, it will output nearby restaurants from their database


Thank you

andrewliu
Junior Poster
188 posts since Jul 2010
Reputation Points: 10
Solved Threads: 0
 

If your search terms are in the same table, you can just add a WHERE clause to the query, before the HAVING.

pritaeas
Posting Expert
Moderator
5,484 posts since Jul 2006
Reputation Points: 653
Solved Threads: 875
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: