Created
April 8, 2013 20:48
-
-
Save cfjedimaster/5340357 to your computer and use it in GitHub Desktop.
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
component { | |
remote function getArt(string term) { | |
var q = new com.adobe.coldfusion.query(); | |
q.setDatasource("cfartgallery"); | |
q.setSQL("select artname from art where lower(artname) like :search"); | |
q.addParam(name="search",value="#lcase(arguments.term)#%",cfsqltype="cf_sql_varchar"); | |
return q.execute().getResult(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment