...

Results like serch engines

Thelma
08-23-2002, 04:48 PM
Anyone how to make search results look more like the ones you get from search engines?

That is, cutting down the amount of text returned from the field you have searched on so it only returns the term you have searched for and a little bit of information after that?

Say I searched on 'Thelma' and 'brain', I would want a result that looked like:"...Thelma is looking for a brain..."
and none of the text that goes before or after it, unless it had the words Thelma and brain in it again.

I can't figure out how to break up the text string in the relevant records.

Thelma
08-27-2002, 02:41 PM
Solved using the Substr(string, start [,length]) function. Anyone know how to get the words searched for in bold in the summary?

Thelma
08-28-2002, 11:06 AM
Solved this one too. Used the str_replace(word_that_needs_replacing, replacement, in_what_text) function for this.

albert
09-04-2002, 11:15 AM
Hi

Can you tell me how you managed to get the text from a search box to bold ie Yahoo

you searched for a "<b>Mini</b>" here are the results

Any help would be great

Al



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum