SunQuest
           WAP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreWAP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
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  
Old March 28th, 2005, 12:13 PM
jpixel jpixel is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2005
Posts: 47 jpixel User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 50 m 41 sec
Reputation Power: 4
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!

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreWAP Programming > can anyone spot errors in this code?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway