I cannot see my dynamic content.
What am I doing wrong?
Here is my SQL
----------------
<cfquery name="GetTrans" datasource="Loaner" dbtype="ODBC">
SELECT
LN.LoanerID, LN.LoanerPO, LN.ManID,
TR.TransID, TR.LoanerID, TR.TimeStamp2,
MN.ManID, MN.ManName
FROM Loaner LN,
Transaction TR,
Manager MN
WHERE LN.LoanerID = #URL.TransID# AND
TR.LoanerID = LN.LoanerID AND
MN.ManID = LN.ManID
</cfquery>
------------------------------
Here is my output:
-----------------------------
<body BGCOLOR="White" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<TABLE ALIGN="center" WIDTH="100%" CELLSPACING="0" CELLPADDING="0" BORDER="0">
<TR>
<TD BGCOLOR="Gold" HEIGHT="25" WIDTH="100%">
<DIV ALIGN="center"><FONT SIZE="2" COLOR="Black">:: LOANER LIST ::</FONT></DIV>
</TD>
</TR>
<TABLE ALIGN="center" WIDTH="550" CELLSPACING="7" CELLPADDING="7" BORDER="0">
<TR>
<TD>
<TABLE CELLSPACING="5" CELLPADDING="5" BORDER="0" ALIGN="center">
<TR>
<TD VALIGN="top">
<!--- <CFIF GetTrans.recordcount IS 1> --->
<FONT FACE="Arial,Helvetica,sans-serif" COLOR="Red" size="2">
<br>
<br>
<br>
<DIV ALIGN="center">This Loan only has One Transaction So You Must Delete The Initial Loan.<br>
<br>
<cfoutput query="GetTrans"><a href="Edit_Loaner.cfm?LoanerID=#LoanerID#">Go Back and Delete Loan</a></CFOUTPUT>
</FONT>
</DIV>
<!--- <CFELSEIF GetTrans.recordcount GT 1> --->
<div align="center">
<font color="Red">
You Are About To Delete This Transaction From The Database.<br>
This CANNOT be UNDONE!!!
</font>
</div>
<br>
<br>
<br>
<cfoutput query="GetTrans">#ManName# - PO NO. #LoanerPO# - #DateFormat (GetTrans.TimeStamp2, 'mm/dd/yyyy')# - #TimeFormat (GetTrans.TimeStamp2, 'h:m:ss tt')#
<br>
<form action="DeleteTrans_Done.cfm" method="post" name="DeleteTrans" id="DeleteTrans" onSubmit="return confirm ('Did you really think this out? No going back, ARE YOU SURE?')">
<input type="hidden" name="TransID" value="#TransID#"><input type="submit" value="Delete">
</form>
</cfoutput>
<!--- </CFIF> --->
</TD>
</TR>
</TABLE>
</TD>
</TR>
</TABLE>
</body>
</html>
What is wrong?
Thanks,
monoone
What am I doing wrong?
Here is my SQL
----------------
<cfquery name="GetTrans" datasource="Loaner" dbtype="ODBC">
SELECT
LN.LoanerID, LN.LoanerPO, LN.ManID,
TR.TransID, TR.LoanerID, TR.TimeStamp2,
MN.ManID, MN.ManName
FROM Loaner LN,
Transaction TR,
Manager MN
WHERE LN.LoanerID = #URL.TransID# AND
TR.LoanerID = LN.LoanerID AND
MN.ManID = LN.ManID
</cfquery>
------------------------------
Here is my output:
-----------------------------
<body BGCOLOR="White" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<TABLE ALIGN="center" WIDTH="100%" CELLSPACING="0" CELLPADDING="0" BORDER="0">
<TR>
<TD BGCOLOR="Gold" HEIGHT="25" WIDTH="100%">
<DIV ALIGN="center"><FONT SIZE="2" COLOR="Black">:: LOANER LIST ::</FONT></DIV>
</TD>
</TR>
<TABLE ALIGN="center" WIDTH="550" CELLSPACING="7" CELLPADDING="7" BORDER="0">
<TR>
<TD>
<TABLE CELLSPACING="5" CELLPADDING="5" BORDER="0" ALIGN="center">
<TR>
<TD VALIGN="top">
<!--- <CFIF GetTrans.recordcount IS 1> --->
<FONT FACE="Arial,Helvetica,sans-serif" COLOR="Red" size="2">
<br>
<br>
<br>
<DIV ALIGN="center">This Loan only has One Transaction So You Must Delete The Initial Loan.<br>
<br>
<cfoutput query="GetTrans"><a href="Edit_Loaner.cfm?LoanerID=#LoanerID#">Go Back and Delete Loan</a></CFOUTPUT>
</FONT>
</DIV>
<!--- <CFELSEIF GetTrans.recordcount GT 1> --->
<div align="center">
<font color="Red">
You Are About To Delete This Transaction From The Database.<br>
This CANNOT be UNDONE!!!
</font>
</div>
<br>
<br>
<br>
<cfoutput query="GetTrans">#ManName# - PO NO. #LoanerPO# - #DateFormat (GetTrans.TimeStamp2, 'mm/dd/yyyy')# - #TimeFormat (GetTrans.TimeStamp2, 'h:m:ss tt')#
<br>
<form action="DeleteTrans_Done.cfm" method="post" name="DeleteTrans" id="DeleteTrans" onSubmit="return confirm ('Did you really think this out? No going back, ARE YOU SURE?')">
<input type="hidden" name="TransID" value="#TransID#"><input type="submit" value="Delete">
</form>
</cfoutput>
<!--- </CFIF> --->
</TD>
</TR>
</TABLE>
</TD>
</TR>
</TABLE>
</body>
</html>
What is wrong?
Thanks,
monoone