You are here: select replace() « PHP SQL « IT news, forums, messages
select replace()

Posted by brendan on 06/29/05 15:00

um ... could someone tell me why this seemingly obvious statement intented
to bolden returned search terms returns a blank description field?

SELECT
links_DB.type, links_DB.link_ID,
links_DB.hyperlink, links_DB.title, links_DB.starts, links_DB.keywords,
links_DB.contact_person, links_DB.author, links_DB.img_thumb_ID,
keychain.level, keychain.key_ID,
REPLACE(links_DB.description,'$search_term','<b>$search_term</b>'),
MATCH ( title, description, author, contact_person )
AGAINST ( '$search_term' ) AS score


ALSO tried using
REPLACE(links_DB.description,'$search_term','<b>$search_term</b>') AS
description,
this just gave me back the field without the replaced value!
argh
help
ta

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация