coldfusion fetch mysql query question
Hi:
Here is my coldfusion code:
<cfquery name = "query" datasource = "cfmysql" result = "result">
SELECT COUNT(*) FROM students WHERE gender = 'boy'
</cfquery>
And then I want to check if value is greater than 0. I then do:
<cfif existSearchHintsQuery.COUNT(*) gt 0>
But coldfusion gives me an error at the * character, the colume of the mysql result is "COUNT(*)", so I really need the * character.
How do I fetch that count number?
Thanks.
