Gossamer Forum
Home : General : Databases and SQL :

Searching MySQL

Quote Reply
Searching MySQL
Is there any way, when searching through a database to have the place where the object searched is found displayed?

eg. Someone is searching the word "truth" in my database. Say this is found in a line, "The truth is that the end is near." Instead of having that entire line returned, can I make it so that only "...truth is that..." or something to that extent?

I know that their is a LEFT() function to limit the characters result, however if this searched query is found in the middle of 12 paragraphs, how can I narrow down the displayed result?
Subject Author Views Date
Thread Searching MySQL JoFrRi 4811 Aug 17, 2003, 10:53 AM
Thread Re: [JoFrRi] Searching MySQL
Stealth 4660 Aug 18, 2003, 9:38 PM
Post Re: [Stealth] Searching MySQL
JoFrRi 4528 Aug 21, 2003, 11:43 PM