I am trying to create an excel file of sport scores using and but any score that is less then 13 is interpreted as a date. [eg. 15-25 is fine but 12-25 is inserted into the excel file as the date "25-Dec"]
Can someone please help me out of this dilemma.
Thank you
The summary of the Cold Fusion code looks something like this:
<!--- Code to output to EXCEL
<cfheader name="Content-Disposition" value="inline; filename=CHRVAResults.xls">
<cfcontent type="application/vnd.msexcel">
End Code to output to EXCEL --->
<table border="1" cellspacing="0">
<tr>
<td width="200" align="" class="poolHR">Team 1</td>
<td width="200" align="" class="poolHR">Team 1 Code</td>
<td width="200" align="" class="poolHR">Opponent</td>
<td width="200" align="" class="poolHR">Opponent's Code</td>
<td width="300" align="" class="poolHR">Tournament Name</td>
<td width="100" align="" class="poolHR">Date</td>
<td width="50" align="" class="poolHR">Outcome</td>
</tr>
<cfoutput query="listDetail">
<cfquery name="getwinningTeamName" datasource="#juniordb_sql#">
select teams.teamName, teams.teamCode
from teams
where teams.teamcode = '#listDetail.Winning_teamID#'
UNION
select outofregion.teamName, outofregion.teamCode
from outofregion
where outofregion.teamcode = '#listDetail.Winning_teamID#'
</cfquery>
<cfquery name="getlosingTeamName" datasource="#juniordb_sql#">
select teams.teamName, teams.teamCode
from teams
where teams.teamcode = '#listDetail.Losing_teamID#'
UNION
select outofregion.teamName, outofregion.teamCode
from outofregion
where outofregion.teamcode = '#listDetail.Losing_teamID#'
</cfquery>
<cfquery name="getTourn" datasource="#juniordb_sql#">
SELECT uniqueid, dte, tournname, division
FROM sanction
<cfif tournID is not "">
WHERE sanction.uniqueid = '#tournID#';
</cfif>
</cfquery>
<td>
....etc