|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
can anyone spot errors in this code?
<cfcontent type="text/vnd.wap.wml"><?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"> <!--- get further details on the vehicle using id ---> <cfquery name="listdetails" datasource="#dsn#"> SELECT * FROM stock WHERE id = #url.id# </cfquery> <!--- get current highest bid ---> <cfquery name="gethighbid" datasource="#dsn#"> SELECT max(highBid) as highbidn FROM bids WHERE id = #url.id# </cfquery> <!--- bonus stuff: get username of highest current bid ---> <cfquery name="gethighbiduser" datasource="#dsn#"> SELECT userID FROM bids WHERE highBid = #gethighbid.highbidn# </cfquery> <wml> <!--- This card displays more information on the product and a link to the bids page ---> <card id="placebid" title="Car Details"> <cfoutput query="listdetails"> <p>Car ID: #id#<br/> Make: #makeID#<br/> Model: #modelID#<br/> Variant: #variant#<br/> Body Style: #bodyStyleID#<br/> Colour: #colour#<br/> Year: #year#<br/> Reg: #reg#<br/> Miles: #miles#<br/> Owners: #owners#<br/> </p> </cfoutput> <cfoutput query="gethighbid"><p>Current High Bid: #highbidn#<br/></p></cfoutput> <cfoutput query="gethighbiduser"><p>Current High Bidder: #userID#<br/></p></cfoutput> <p><a href="#enterbid">Place Bid</a></p> </card> <!--- The user enters their maximum bid ---> <card id="enterbid" title="Enter Bid"> <p>Please enter your max bid amount below:<br/> <input type="text" title="Enter Max Bid" name="maxbid" format="*N"/><br/> <!--- The maxbid and car id values are passed onto bidconfirm.cfm ---> <a href="bidconfirm.cfm?bid=$(maxbid)&id=<cfoutput query="listdetails">#id#</cfoutput>">Continue</a></p> </card> </wml> I swear this page was working fine, and then suddenly one day it stopped working and I get an unexpected server error. Can anyone see if there are any syntax errors? I just dont understand what the hell happened! |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > WAP Programming > can anyone spot errors in this code? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|