calling a cfc through a udf
Is it possible to call a cfc function through a udf, or maybe im just looking at this the wrong way but here is what im ultimately trying to do.
I have the following table:
tbl_users
=====================
uid name
=====================
1 John
2 Steve
3 Joe
4 Bob
Then throughout the program i am given a few of the uid, and i have to loop through them and get the names, so im trying to figure out a way to make a function so i can call it like this and it checks the db and gives me the name:
getName(uid) = returns name
Is there any easy way of doing something like this?
