Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <cffunction name="queryresult">
- <cfargument name="datasource" required="yes">
- <cfargument name="sql" required="yes">
- <cftry>
- <cfquery name="rs1" datasource="#datasource#" username="#form.username#" password="#form.password#">
- #sql#
- </cfquery>
- <cfreturn rs1>
- <cfcatch type="any">
- <cfoutput>error #cfcatch.type#</cfoutput>
- </cfcatch>
- </cftry>
- </cffunction>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement