Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

using a search query to go to the right page!

Status
Not open for further replies.

scaifea

Technical User
Apr 14, 2005
35
GB
I would like to ensure that if someone searches google for an ipod nano in blue, I show them the blue picture, not our usual black one?

Any help here appreciated ... any software or particular language that will do this? or any server side code?

eBay and Internet Marketing Whizz!
 
Probably many ways to do it but that can be done in php (which is server side) easily. You'd have to create a list of things you want to extract from the search queries. Then take those extracted variables and make that call a specific file name. If you put some logic into the image file names then you can have the script 'guess' the file name.
 
I'm assuming you didn't like the answer in thread253-1390537

As I said there, just make pages that contain what you want to be indexed.

For instance, let's say that you want people to see the picture of a blue ipod when they search Google for "blue ipod" and follow a link to your site.

Create a page that contains the picture of the blue ipod and suitable blue ipod text etc. Google will then index the content of that particular URL and return it as a result if the content matches a given search query.

The pages can be a static HTML file or created dynamically using PHP or another server side language.
The URLs for these pages might take the form of

or

In fact, they could be anything so long as they 'link' to the appropriate content. For instance, if creating the pages dynamically from a database, you would grab the parameters from the query string and use them to build the relevant database query in order to populate your page.

Either way, you don't need to analyse any search queries. Google indexes pages and not websites. The most suitable page from your site, for a given search query, will be returned by Google. Clicking that result will link directly to the appropriate page with it's corresponding content.

Maybe I am missing something, but you seem to be over-complicating things by wanting to analyse the search query. Or do you mean that you want to be able to grab info from a page's URL in order to build a database query?



<honk>*:O)</honk>

Tyres: Mine's a pint of the black stuff.
Mike: You can't drink a pint of Bovril.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top