RE: Creating search results

2007-04-28 Thread Bobby Hartsfield
Something like mid() should do it. Just start like 150 characters to the left of where you find the term (if there are 150 characters to the left) And do the same thing for the end... 150 characters to the right of the found term. find() will give you the position of the term in the text. find()

Re: Creating search results

2007-04-28 Thread Rick Root
On 4/28/07, Joel Watson [EMAIL PROTECTED] wrote: I am trying to make a search display page that will display a snippet of text (about 300 characters) from blog posts that match the search criterion. I have no problem with generating the results, but I would like to be able to zero in on the