Advertisement

09.29.2008 at 12:46PM PDT, ID: 23772649
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.3

CFIF required to ensure only one image is displayed

Asked by bede123 in Cold Fusion Markup Language, ColdFusion Application Server, SQL Query Syntax

Tags:

Hi all i'm using this SQL to to query the db to show me all products from a particular category.

the problem is that each image has four images and i only want to display one (the thumbnail).

i guess this can be done by one of two ways. either edit the SQL or have a CFIF ont he page where the data/image is displayed to say only show 1. neither of which i am able to do myself hence this post.

the SQL is:

<cfquery name="GetRecProducts" datasource="#request.dsn#" username="#request.dsn#" password="#request.dsn#">
SELECT tbl_prdtcat_rel.prdt_cat_rel_ID, tbl_prdtcategories.category_Name,tbl_products.product_Name, tbl_products.product_Description, tbl_products.product_Archive, tbl_prdtimages.prdctImage_FileName
FROM (tbl_products INNER JOIN (tbl_prdtcategories INNER JOIN tbl_prdtcat_rel
ON tbl_prdtcategories.category_ID = tbl_prdtcat_rel.prdt_cat_rel_Cat_ID)
ON tbl_products.product_ID = tbl_prdtcat_rel.prdt_cat_rel_Product_ID)
INNER JOIN tbl_prdtimages ON tbl_products.product_ID = tbl_prdtimages.prdctImage_ProductID
WHERE tbl_prdtcategories.category_ID = 6

</cfquery>


and the output currently looks like this:

<table border="0" cellpadding="2" cellspacing="2">
<tr>
<td colspan="3"><cfoutput>#GetRecProducts.category_Name#</cfoutput></td>
 </tr>
 <cfoutput query="GetRecProducts">
 <tr>
 <td></td>
 <td>#GetRecProducts.product_Name#</td>
 <td><img src="cw3/assets/product_thumb/#prdctImage_FileName# " alt="#GetRecProducts.product_Name#" /></td>
 </tr>
</cfoutput>
</table>Start Free Trial
 
Loading Advertisement...
 
[+][-]09.29.2008 at 12:59PM PDT, ID: 22600047

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.29.2008 at 01:03PM PDT, ID: 22600089

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.29.2008 at 01:17PM PDT, ID: 22600217

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]09.29.2008 at 02:00PM PDT, ID: 22600636

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.29.2008 at 04:17PM PDT, ID: 22601660

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.30.2008 at 05:28AM PDT, ID: 22604692

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.30.2008 at 10:16PM PDT, ID: 22611759

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.30.2008 at 10:20PM PDT, ID: 22611775

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Cold Fusion Markup Language, ColdFusion Application Server, SQL Query Syntax
Tags: SQL & Coldfusion
Sign Up Now!
Solution Provided By: Zvonko
Participating Experts: 2
Solution Grade: B
 
 
[+][-]10.01.2008 at 07:43AM PDT, ID: 22614869

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.01.2008 at 07:55AM PDT, ID: 22615014

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.01.2008 at 08:33AM PDT, ID: 22615484

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.01.2008 at 08:36AM PDT, ID: 22615518

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628