I use CFSCRIPT to define my query:
<cfscript>
query name="qry"
{
echo("select username, logondate, logontime from tblusers");
}
</cfscript>
and then CFOUTPUT to get the result into my HTML table
<cfoutput query = "qry">
<tr class="sysusers" id="sysusers">
<td id = "selectuser" class="user">#qry.username#</td>
<td class="date">#qry.logondate#</td>
<td class="time">#qry.logontime#</td>
</tr></cfoutput>
Now I need to update the DB if a button is clicked but that would require a function and I can’t seem to put these in a function. There must be a way to do it.