<cfquery name="qListeners" datasource="#request.dsn#"> SELECT * FROM dbo.#stationName#_listener_list Where (username LIKE <cfqueryparam value="%#form.keyword#%" cfsqltype="cf_sql_clob"> OR name LIKE <cfqueryparam value="%#form.keyword#%" cfsqltype="cf_sql_clob">) <cfif structKeyExists(form, "myCheckBox")> AND newsletter = <cfqueryparam cfsqltype="cf_sql_bit" value="1" /> </cfif> </cfquery>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:320147 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

