I have the follow code I am trying to run with no luck. I am not that familar with arrays so If someone could shed some light on this it would be great.
Here is what I am trying to do. I want to get live information from a machine store the value in a array(?) then refresh the page 1 min later and add the new live value to the array. This will continue for 8 hours then the array will be cleared. Is this possible. ARGH!
<cfset session.myarray=ArrayNew(1)>
<cfset session.myarray2=ArrayNew(1)>
<cfset session.myarray3=ArrayNew(1)>
<cfquery name="one" datasource="source">
select top 5 tagname, value,datetime
from table
where tagname = total_produced'
</cfquery>
<CFSET arrayappend(session.myarray,one.value)>
<cfoutput>
#session.myarray[1]#<br>
</cfoutput>
Here is what I am trying to do. I want to get live information from a machine store the value in a array(?) then refresh the page 1 min later and add the new live value to the array. This will continue for 8 hours then the array will be cleared. Is this possible. ARGH!
<cfset session.myarray=ArrayNew(1)>
<cfset session.myarray2=ArrayNew(1)>
<cfset session.myarray3=ArrayNew(1)>
<cfquery name="one" datasource="source">
select top 5 tagname, value,datetime
from table
where tagname = total_produced'
</cfquery>
<CFSET arrayappend(session.myarray,one.value)>
<cfoutput>
#session.myarray[1]#<br>
</cfoutput>