• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

cfoutput group

Guest
Jan 08, 2007 Jan 08, 2007

Copy link to clipboard

Copied

Hi i have a webpage

http://www.southerncooling.com/NEW.cfm

the first model "505350 Tank Beige" should show EXH-130, 150, 170, 190, 210, EXD-150, 170, 210

but i am get duplicates

any ideas why this is?
TOPICS
Advanced techniques

Views

518

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jan 09, 2007 Jan 09, 2007

Copy link to clipboard

Copied

Tried to look at page link but you have a "Could not connect to JRun server"

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jan 09, 2007 Jan 09, 2007

Copy link to clipboard

Copied

hi should be ok now

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jan 10, 2007 Jan 10, 2007

Copy link to clipboard

Copied

Try taking all your outputting code out and add them all back one by one. I believe the multiple CFoutputs are causing the duplicates to show. You could also test SQL statement in DB to see what results are as inner joins can sometimes bring back multiple results.

Start with SQL statement. If it doesn't bring back dupes then it's Cfoutput code.

Hope this helps.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jan 10, 2007 Jan 10, 2007

Copy link to clipboard

Copied

ok many thanks

if you look now at
http://www.southerncooling.com/NEW.cfm

the first record should show

505350 EXH-130, 150, 170, 190, 210 EXD-130, 150, 170, 190, 210

but it only shows the first one EXH-130, 150, 170, 190, 210,

as soon as put a cfoutput in i get a totlly wrong result, is my query ok?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jan 24, 2007 Jan 24, 2007

Copy link to clipboard

Copied

I get an error when I go to the page. Try building query with just the first select and from part and then add one inner join to see if you get the correct result. I know a few times in my past I had inner joins that were pulling duplicate information. It could be so simple as exchanging what is being inner joined.
If you want to send me a copy of the db you can do so here: alfior73 at yahoo.com

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jan 24, 2007 Jan 24, 2007

Copy link to clipboard

Copied

LATEST
ok thanks i will forward u a copy, should i just do a cfdump of the mysql database?

i have played around with the query this is want i have now but still only shows 1 result for each partno

<cfquery name="Products" datasource="#application.ds#">
SELECT *
FROM Products_Table PT

INNER JOIN Range_Model RM
ON RM.Product_ID64 = PT.Products_ID

INNER JOIN Range_table RT
ON RM.Range_ID64 = RT.Range_ID

INNER JOIN Model_Table MT
ON MT.Model_ID = RM.Model_ID64

ORDER BY Range_Name
</cfquery>

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation