Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Aug 2002
    Posts
    18
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Results like serch engines

    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.

  • #2
    New Coder
    Join Date
    Aug 2002
    Posts
    18
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Solved using the Substr(string, start [,length]) function. Anyone know how to get the words searched for in bold in the summary?

  • #3
    New Coder
    Join Date
    Aug 2002
    Posts
    18
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Solved this one too. Used the str_replace(word_that_needs_replacing, replacement, in_what_text) function for this.

  • #4
    New to the CF scene
    Join Date
    Aug 2002
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Search Engine

    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


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •