Yes please that is what i want.. if it possible to give em the code..
thanks in advance for you and for George Pitcher
"Cristian Marin" <[EMAIL PROTECTED]> wrote in message
> Yes it is posible using the preg_replace substituing the text with </b>the
> text</b> or to what ever you want.
> If you are not advanced in php you could do it with substr_replace()
> The first solution is more dificult to be used but you have the advantage
> you can search for each word used in the %search_words% and highlight them
> even if they are not positioned in the same order in the text searched.
> in this case you have to use the MySQL 'match against' with the full text
> indexing in place of like).
> The result is something like this: http://www.interakt.ro/search.php. Try
> searching 'mysql adodb'
> If this is what you want I can help you with a code block
> Cristian MARIN - Developer
> InterAKT Online (www.interakt.ro)
> Tel: +4021 312.53.12
> Tel/Fax: +4021 312.51.91
> [EMAIL PROTECTED]
> "Nabil" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > Dear all,
> > 1- I have a form with an input text : keyword
> > 2- the field address is in my MySQL as TEXT field.
> > 3- I select * from db where address like '%keyword%'
> > 4- I want when echo the return $row["address"] to highlight the entered
> > keyword (that the user has entered in the search form) in the output
> > different font backcolor or by just another color... to let the user see
> > what he was searching for
> > 5- and if it possible to echo how accurate (percentage) the return rows
> > fit his search...
> > Please Advise how to do it...
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php