I want to use very dynamic and variable variables in my site as follows:
birthday is the column where i want to write the date
this works:
------------
<cfset birthdayyear="01">
<cfset birthdaymonth="12">
<cfset birthdayday="24">
<cfset birthday=#createdate(birthdayyear, birthdaymonth, birthdayday)#>
<cfoutput>#birthday#</cfoutput>
------------
output:
{ts '2001-12-24 00:00:00'}
------------
the problem is now, that i want to change the column dynamically
for example:
------------
<cfset column="birthday">
<cfset #column#year="01">
<cfset #column#month="12">
<cfset #column#day="24">
<cfset #column#=#createdate(#column#year, #column#month, #column#day)#>
<cfoutput>#birthday#</cfoutput>
------------
output:
error
------------
my problem is now, that i can't set a variable using #output#. nor can i create a date using #output#.
is there a possibility to link different variables?
ezbinden
birthday is the column where i want to write the date
this works:
------------
<cfset birthdayyear="01">
<cfset birthdaymonth="12">
<cfset birthdayday="24">
<cfset birthday=#createdate(birthdayyear, birthdaymonth, birthdayday)#>
<cfoutput>#birthday#</cfoutput>
------------
output:
{ts '2001-12-24 00:00:00'}
------------
the problem is now, that i want to change the column dynamically
for example:
------------
<cfset column="birthday">
<cfset #column#year="01">
<cfset #column#month="12">
<cfset #column#day="24">
<cfset #column#=#createdate(#column#year, #column#month, #column#day)#>
<cfoutput>#birthday#</cfoutput>
------------
output:
error
------------
my problem is now, that i can't set a variable using #output#. nor can i create a date using #output#.
is there a possibility to link different variables?
ezbinden