Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old February 18th, 2017, 01:58 PM
Registered User
Points: 8, Level: 1
Points: 8, Level: 1 Points: 8, Level: 1 Points: 8, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Feb 2017
Location: Houston, TX
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default call Function in SQL Statement

I'm searching a blog post database field with embedded HTML and highlighting the found strings but it's selecting and highlighting HTML tags breaking the HTML.

I have a regular expression function RemoveHTMLI use to display excerpts without the HTML that I am trying to call from my SQL to prevent tag matches but it does nothing.

Here's the SQL: "SELECT Content_ID, Content_Title, Content_Body, Content_FeaturedImage FROM Content WHERE ((Content_Title) Like ?) OR (" & RemoveHTML("Content_Body") & " Like ?) And Content_Active = 'Y' ORDER BY Content_Title ASC;"

The query runs but it returns HTML. Any ideas?
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to call sql server function in crystal report arumugavel Access VBA 0 November 15th, 2006 11:05 PM
Help writing SQL Statement/ .net code for function carswelljr Classic ASP Databases 2 August 24th, 2006 03:31 PM
How to call javascript function from VB function vinod_yadav1919 VB How-To 0 February 13th, 2006 05:03 AM
Calling a Function within an MS SQL Statement flyin Classic ASP Databases 3 September 5th, 2003 03:10 AM



All times are GMT -4. The time now is 01:26 AM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.