What script to write so that I enable users to search either google(with earning ads) and at the same time allow them to search my site...and get results hosted in my site..
You don't need to write the script yourself. Just sign up for Google AdSense and they offer such a script.
If you like to have a search engine running on your site, you can use the web based Google and Yahoo search scripts which are simple to embed. Using the same services but in the packages of PPC search engines would bring you money when people use the search section of your site and while clicking on the ads.
I know hat he means, he wants a search box for his site that you can search google and his site from, heres what you need: http://www.google.com/cse
Well probably you are quite right, and sorry for not being much clear.. I need a search box with two radio buttons. With the first one I can get search results from google, and the second one get search results from my website databases( I already have one)...so I tried to use google cse but I don't see how can I make two radio buttons....let me find a site that has what I want and then share it here..
Well, I have seen that too..I can easily implement google cse and get results hosted on my site, but I thought something like google cse and a normal search from my site( which is wordpress using search.php) mixed together in a search box...
I was looking for this..check out.. http://teamtutorials.com/web-development-tutorials/replace-wordpress-search-with-google-search-box