Wrox Programmer Forums
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 18th, 2017, 02:58 PM
Registered User
 
Join Date: Feb 2017
Posts: 4
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?





Similar Threads
Thread Thread Starter Forum Replies Last Post
how to call sql server function in crystal report arumugavel Access VBA 0 November 16th, 2006 12:05 AM
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 06:03 AM
Calling a Function within an MS SQL Statement flyin Classic ASP Databases 3 September 5th, 2003 03:10 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.