Page 1 of 1

Adding google search results to a mySQL database?

Posted: Fri Aug 27, 2010 10:19 pm
by cgood
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.

Re: Adding google search results to a mySQL database?

Posted: Sat Aug 28, 2010 2:33 am
by internet-solution
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?

Posted: Sat Aug 28, 2010 10:09 am
by cgood
Thanks. That's awesome. Didn't realize you could actually pull in the results.

Re: Adding google search results to a mySQL database?

Posted: Sun Aug 29, 2010 10:17 am
by internet-solution
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.