Reading List Values with <CFLOOP>
By using the tag <CFLOOP>, all the extra time I spent packaging data into lists really starts to pay off. I covered the tag briefly in the introduction to data lists, but this section takes things a step further.
Let's say that in my off hours I've assembled a massive database that contains the details of every episode of the 1970's TV show The Munsters. I now have 70 records in my table, with each one listing the episode's title and plot synopsis.
I've decided it's vital that Web users be able to access this information, so I want to create a search page that lets them search my table by keywords. I'll start with the input form shown in Figure 15.2.
Figure 15.2. This form collects one or more keywords and passes ...
Get Sams Teach Yourself ColdFusion® in 21 Days now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.