Hi,
I don't know anything about coldfusion, but have to fix an error that says newtradeid is undefined and points to the code below:
<cfoutput>
<cfif newtradeid neq ''>
<table cellspacing="0" width="500"><tr><td align="right" class="text">Click<a href="JavaScript:newPopUp('../tradedetails.cfm?tradeid=#newtradeid#')" class="newtext"> here </a>to view trade Profile</td></tr></table>
</cfif>
</cfoutput>
it looks like the variable is defined to me in the code above it which says:
<cfquery name="qgetcars" datasource="Car2BuyNI">
select *
from carstosell, carmake
where carstosell.CarMakeID = carmake.carmakeid
AND carstosell.CarToSellID = #url.id#
</cfquery>
<cfoutput query="qgetcars">
<cfset newtradeid = #tradeid#>
</cfoutput>
I have tested the sql query alone against the database and it is fine. Do you see something wrong? Thanks for advice.
scg
I don't know anything about coldfusion, but have to fix an error that says newtradeid is undefined and points to the code below:
<cfoutput>
<cfif newtradeid neq ''>
<table cellspacing="0" width="500"><tr><td align="right" class="text">Click<a href="JavaScript:newPopUp('../tradedetails.cfm?tradeid=#newtradeid#')" class="newtext"> here </a>to view trade Profile</td></tr></table>
</cfif>
</cfoutput>
it looks like the variable is defined to me in the code above it which says:
<cfquery name="qgetcars" datasource="Car2BuyNI">
select *
from carstosell, carmake
where carstosell.CarMakeID = carmake.carmakeid
AND carstosell.CarToSellID = #url.id#
</cfquery>
<cfoutput query="qgetcars">
<cfset newtradeid = #tradeid#>
</cfoutput>
I have tested the sql query alone against the database and it is fine. Do you see something wrong? Thanks for advice.
scg