keyword search - show only the matching field

Hello
I need help to write a < Cfoutput > that shows only the field names that match a search.

FYI, for example, I have a form with a field of keyword allows you to do a "search by name" looking for my very basic table that has several types of family names (e.g., director_lastname, actor_lastname, etc..)

< cfquery name = "Results" datasource = "my_dsn" >
SELECT * FROM table WHERE
director_lastname LIKE ' %#keyword #% ' GOLD actor_lastname AS ' %#keyword #% ".
< / cfquery >

Currently I can only understand how cfoutput whole row that matched the querey

As always, any help is greatly appreciated!
Thank you!

For syntax, change this

for this

to be more effiecient

Tags: ColdFusion

Similar Questions

Maybe you are looking for