Adding google search results to a mySQL database?
Moderator: General Moderators
Adding google search results to a mySQL database?
Is it possible to insert search results from the google (I'm guessing through the javascript search they provide) into a mySQl database dynamically as users search different keywords? I want to be able to add notes and stuff to the listings off to the side of them by putting them in the database and then adding some extra fields that can be altered. Thanks for the suggestions. I just don't really see any way of doing it.
-
internet-solution
- Forum Contributor
- Posts: 220
- Joined: Thu May 27, 2010 6:27 am
- Location: UK
Re: Adding google search results to a mySQL database?
You can use google ajax api for this. This will return results in JSON format. In PHP, decode the result and do whatever you want to do with it.
Re: Adding google search results to a mySQL database?
Thanks. That's awesome. Didn't realize you could actually pull in the results.
-
internet-solution
- Forum Contributor
- Posts: 220
- Joined: Thu May 27, 2010 6:27 am
- Location: UK
Re: Adding google search results to a mySQL database?
I am developing a facebook app based on Google Ajax API - http://apps.facebook.com/urlocal/. Feel free to look at the javascripts, which will give you some ideas.