Adding google search results to a mySQL database?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
cgood
Forum Newbie
Posts: 8
Joined: Mon Aug 23, 2010 10:41 pm

Adding google search results to a mySQL database?

Post 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.
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?

Post 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.
cgood
Forum Newbie
Posts: 8
Joined: Mon Aug 23, 2010 10:41 pm

Re: Adding google search results to a mySQL database?

Post by cgood »

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?

Post 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.
Post Reply