Created
October 28, 2021 02:37
-
-
Save trycf/4eee197579c12f37fb45219407dcd93b to your computer and use it in GitHub Desktop.
TryCF Gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfscript> | |
local.results = queryNew( "Name,Title", "varchar,varchar" ); | |
queryAddRow( local.results ); | |
querySetCell( local.results, "Name", "Mark" ); | |
querySetCell( local.results, "Title", "Developer" ); | |
queryAddRow( local.results ); | |
querySetCell( local.results, "Name", "Jessica" ); | |
querySetCell( local.results, "Title", "Manager" ); | |
queryAddRow( local.results ); | |
querySetCell( local.results, "Name", "Alisha" ); | |
querySetCell( local.results, "Title", "Designer" ); | |
writeDump( local.results ); | |
for ( local.row in local.results ) { | |
writeOutput( "#local.results.Name# is a #local.results.Title#<br/>" ); | |
} | |
</cfscript> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment