R
Rob Meade
Lo all,
Ok - just spotted another problem I'm going to have.
All of the rows for the page content in the database contain formatting ie,
<b>some bold text</b>
This will cause me a problem initially as if I wanted to search for <company
name> the SQL statement
might be something like this :
WHERE PageContent Like '% company name %'
The spaces obviously prevent the word being contained within another word
(gene/generic etc) however, if there was a page that had something like this
:
<b>My Company</b>
then the above would not find it.
How would I best go about ignoring the html tags within the page content in
the database, is it possible to add this to my code in my view so that the
view already has this stripped out - thus not having to do it each time the
search is carried out?
Any info appreciated..
Regards
Rob
Ok - just spotted another problem I'm going to have.
All of the rows for the page content in the database contain formatting ie,
<b>some bold text</b>
This will cause me a problem initially as if I wanted to search for <company
name> the SQL statement
might be something like this :
WHERE PageContent Like '% company name %'
The spaces obviously prevent the word being contained within another word
(gene/generic etc) however, if there was a page that had something like this
:
<b>My Company</b>
then the above would not find it.
How would I best go about ignoring the html tags within the page content in
the database, is it possible to add this to my code in my view so that the
view already has this stripped out - thus not having to do it each time the
search is carried out?
Any info appreciated..
Regards
Rob