Greetings!
I am having a problem creating a custom function in MM CF 5.0 (NOT MX!), and I cannot use the <cffunction> tag, because it is unrecognised....
Now a question... How do I create a custom function like this:
<cfscript>
function myFunction(table, row)
{
<cfquery dbtype="odbc" dbsource="mydb">
INSERT
INTO sometable
(first, second)
VALUES
('#table#','#row#')
</cfquery>
}
</cfscript>
Well... The idea of connection is like this, but I have no clue, how to actually WRITE a function, that should DO this...
Ideas?
Thanx. ~W.
I am having a problem creating a custom function in MM CF 5.0 (NOT MX!), and I cannot use the <cffunction> tag, because it is unrecognised....
Now a question... How do I create a custom function like this:
<cfscript>
function myFunction(table, row)
{
<cfquery dbtype="odbc" dbsource="mydb">
INSERT
INTO sometable
(first, second)
VALUES
('#table#','#row#')
</cfquery>
}
</cfscript>
Well... The idea of connection is like this, but I have no clue, how to actually WRITE a function, that should DO this...
Ideas?
Thanx. ~W.