Ask a Question related to Coldfusion Database Access, Design and Development.
-
Funkert #1
Show particular data only once
Hi,
I'm busy putting a product DB/site together. When a product is selected (for
instance Adobe Acrobat), you go to a details.cfm page.
On this page I want one boxshot, one global description and below the
different versions, like Win/Mac, Upgrade/Full, prizes etc.
What I have now is a table which gets filled with all the data, but I like I
said I only need one description and picture. The one in the first record would
be fine.
How do I do this ?
This is what I've got now, the bold parts are the picure and description.
<cfoutput query="website">
<cfif website.currentrow mod 2 eq 1>
<tr>
</cfif>
<td valign="top" align="center" width="100">
<img src="webpictures/#WEBPICTURE#">
</td>
<td> <span class="style5">#website.productname#</span><BR>
<div align="right"><strong>Prijs</strong>:
#LSEuroCurrencyFormat(website.srp_eur)#</div><br>
<!---//niet aanwezig <strong>Ontwikkelaar</strong>: #ontwikkela#<br>--->
<strong>Platform</strong>: #website.platform# <br>
<strong>Omschrijving</strong>: #website.webomschrijving_NL_lang#<br><br>
<strong>Systeemeisen</strong>: #website.systeemeisen#<br><BR>
<div align="right"><strong>Prijs</strong>:
#LSEuroCurrencyFormat(website.srp_eur)#</div>
<BR><BR>
<div align="right"><a href="javascript:history.go(-1)">[<-Vorige]</a></div>
<hr>
</td>
<cfif website.currentrow mod 2 eq 1>
<tr>
</cfif>
</cfoutput>
Funkert Guest
-
Query to show data but ignore dupes
i have a database with 500,000 records. one column has the same data over and over. i am trying to get a list of the differnt names in that one... -
Datagrid doesn't show data, although it's there ?
Hi, I've read the Business Directory Sample Tutorial from the Macromedia website, and I've set up my own MySQL database, with some modifications.... -
how to use datagrid & actionscript to show data
hi all, I have a project , which needs to be done entirely in Flash. It should have a product comparison table.When we click on a image and drag... -
Entering Data and then having another linked data show up.
I am creating a form. What I need help doing is setting up the following. First, I have a list box with about 12- 15 options to choose. Each of... -
can't get data to show with bound columns
I'm trying to create a DataGrid filled with values from a DataSet and I want the user to be able to show and hide whichever columns they choose. I... -
jdeline #2
Re: Show particular data only once
You could initialize a flag to TRUE before entering the loop; then test the
flag when you are ready to display the picture and description. If the flag is
TRUE (first time), you do the display and set the flag to FALSE.
jdeline Guest



Reply With Quote

