As it stands, the output will show all bids. I need it to show a place
holder
for the first top 4 bids like $$$$ and show the 5th highest bid. The idea is
that the bidders can't see the top 4 bids.
Jeff Fongemie
<CFQUERY NAME="getbids" DATASOURCE="hclimb">
SELECT bidsID, firstName, lastName, EmailAddress, HomePhone, BidAmount,
BidDate, Alias
FROM bids
ORDER BY bidAmount desc</CFQUERY>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Bids Are...</title>
</head>
<body>
<TABLE CELLPADDING="2" CELLSPACING="2" BORDER="0">
<TH>Alias</TH> <TH>Amt. Bid</TH> <TH>Bid Date</TH>
<CFOUTPUT QUERY="getbids" maxrows=5>
<TR BGCOLOR=###IIF(getbids.currentrow MOD 2, DE ('FFFFFF'), DE ('grey'))#>
<TD>#Alias#</TD> <TD>#BidAmount#</TD> <TD>#BidDate#</TD>
</TR>
</CFOUTPUT>
</TABLE>
</body>
</html>
"Steve DeWitt" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> can you post the code?
>
> -----Original Message-----
> From: Jeff Fongemie [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, July 06, 2000 5:19 AM
> To: [EMAIL PROTECTED]
> Subject: How the heck can I do this?
>
>
> I'm setting up a real simple auction application. Super simple. People
>
> submit bids via a form, then the top 5 bids are displayed on a page. The
>
> catch is, I only want the 5th highest bid to show the actual bid.
>
> So, I can order the query by bid descending and for output bids 1 through
5
>
> will give the bidders name, but I need to have the bid amounts hidden for
>
> the top 4 bids, and show the 5th.
>
> To display only the top 5 bids, I'm using maxrows =5 in my output. Is
there
>
> a way to control all this stuff with the SQL, or do I have a basic query,
>
> order by bid desc. and control the results through output?
>
> With the output method, I can't seem to be able to get the results to
>
> populate the 5th bid amt., but not the first 4.
>
> Thanks,
>
> Jeff Fongemie
>
>
>
> --------------------------------------------------------------------------
--
> --
> Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
> To Unsubscribe visit
> http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
> send a message to [EMAIL PROTECTED] with 'unsubscribe' in
> the body.
> --------------------------------------------------------------------------
----
> Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
> To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.