Hi,
I've set up a keyword search on a mysql db.I've read the article on this site and it's good.the db is relatively small and i'm not too worried about noise words so i use the keyword(s) to seach each articles main body text(blob).What i'd like to do then is,on the results page, show a little snippet from the text below the title of each article with the key word(s) bolded
a la google.what i'd like to know is what function can i use to display,say, the keyword(i can do an ereg_replace to bold the word) with 5 words either side of it(i've been trawling thru the manual for a while but can't seem to find exactly what i'm after).I'm putting the article into an array,with each word as a variable.
thanx
I've set up a keyword search on a mysql db.I've read the article on this site and it's good.the db is relatively small and i'm not too worried about noise words so i use the keyword(s) to seach each articles main body text(blob).What i'd like to do then is,on the results page, show a little snippet from the text below the title of each article with the key word(s) bolded
a la google.what i'd like to know is what function can i use to display,say, the keyword(i can do an ereg_replace to bold the word) with 5 words either side of it(i've been trawling thru the manual for a while but can't seem to find exactly what i'm after).I'm putting the article into an array,with each word as a variable.
thanx