|
|
Question : cffunction-cfinvoke problem
|
|
|
|
Hello experts.I need help to get the recordcount of a query to the cfinvoke and than to the cfoutput.The problem is that i have to use the Distinct in the query. Normal it would be: <cffunction name="retrieveHandler" hint="Get counts from the database" returntype="query"> <cfquery name="getCounthandler" datasource="#request.dsn#"> SELECT COUNT(*) AS Handlercount From users_beruf </cfquery> <cfreturn getCountHandler> </cffunction>
<cfinvoke component="com.count" method="retrieveHandler" returnvariable="allHandler"></cfinvoke>
and <cfoutput>#allHandler.Handlercount#</cfoutput>
But now i need the recorcount of the following query: <cfquery name="getCounthandler" datasource="#request.dsn#"> SELECT DISTINCT user_id From users_beruf </cfquery>
Any help?
|
|
|
|
Answer : cffunction-cfinvoke problem
|
|
|
|
|