Welcome to WebmasterWorld Guest from 126.96.36.199
When users enter a string into an inputbox, I'd like that string to go two ways: one is to query our database, and google results will also be shown at the same time.
The only way I know (and apparently a silly way) is to use fopen(). For example,
$search_string = $_GET('searchstring')
$requesturl = "http://www.google.com/search?q=".$search_string;
Then use fopen() to scrap the page and trim out unnecessary layout.
I'm wondering if there's a better way to deal with it? I've briefly taken a look on Google AJAX Search. Is it possible to make a form processing that can combine google AJAX search and my local database together?
Any advice is appreciated.
joined:Nov 12, 2005