I realize I am just starting to learn but it seems like this should be simple:
I'm just trying to access the maximum value for "ID" and increment by one:
<cfquery datasource="eci" name="maxquery">
select max(ID) as mxid from visitors
</cfquery>
<cfset maxid = mxid +1>
I know the value is there, I can output it by:
<cfoutput query="maxquery">
testing #mxid#
</cfoutput>
but if I try to do anything else with it I get a "unable to determine the value of the parameter" error.
I'm sure it's something simple that I am unable to see.
Thank you for any help you are able to give.
I'm just trying to access the maximum value for "ID" and increment by one:
<cfquery datasource="eci" name="maxquery">
select max(ID) as mxid from visitors
</cfquery>
<cfset maxid = mxid +1>
I know the value is there, I can output it by:
<cfoutput query="maxquery">
testing #mxid#
</cfoutput>
but if I try to do anything else with it I get a "unable to determine the value of the parameter" error.
I'm sure it's something simple that I am unable to see.
Thank you for any help you are able to give.