<cfsetting enablecfoutputonly=true>
<!---
	Name         : handlers/textbox/stats.cfm
	Author       : Raymond Camden 
	Created      : September 21, 2004
	Last Updated : March 30, 2006
	History      : tableprefix fix (rkc 3/30/06)
	Purpose		 : Supports True/False, Yes/No
--->

<cfparam name="attributes.questionidfk">
<cfparam name="attributes.r_data" type="variablename">
<cfparam name="attributes.single" default="true">

<cfset data = structNew()>


<cfquery name="getcount" datasource="#application.settings.dsn#">
	select	
		<cfif attributes.single>
			textbox
		<cfelse>
			textboxmulti
		</cfif>
	from	#application.settings.tableprefix#results
	where	questionidfk = <cfqueryparam cfsqltype="CF_SQL_VARCHAR" maxlength="35" value="#attributes.questionidfk#">
</cfquery>	

<cfset caller[attributes.r_data] = getcount>				
<cfsetting enablecfoutputonly=false>

<cfexit method="exittag">