Skip to content

Instantly share code, notes, and snippets.

@cfjedimaster
Created April 8, 2013 20:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cfjedimaster/5340357 to your computer and use it in GitHub Desktop.
Save cfjedimaster/5340357 to your computer and use it in GitHub Desktop.
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