Problem with custom new additions page....

This is a discussion on "Problem with custom new additions page...." within the Classic ASP section. This forum, and the thread "Problem with custom new additions page.... are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > Classic ASP

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Sep 3rd, 2007, 09:34
Up'n'Coming Member
Join Date: Jul 2007
Location: Barry
Age: 22
Posts: 54
Thanks: 0
Thanked 0 Times in 0 Posts
Problem with custom new additions page....

my new additions page i created pulls out the newest items added and places them into a table so here is my problem...

if you have a product say a bag in the colours red, green, blue. if the price is the same it only pulls out the one price and places the one item in the tabel but if the colours are different prices it pulls them all out like the 2 sharpeners in the pic below


as you can see it has pulled out both versions and not just the one

if this is unclear to any one the pic shows the same product but is displaying both versions i only want it to show the version with the lowest price. Also here is my Query

strQuery = LimitSQL("tblCactuShop" & TABLE_PREFIX & "Products.P_ID, tblCactuShop" & TABLE_PREFIX & "Versions.V_Price, tblCactuShop" & TABLE_PREFIX & "Products.P_DateAdded, tblCactuShop" & TABLE_PREFIX & "Products.P_Name" & numLanguageID & ", P_StrapLine" & CInt(numLanguageID) & strSelectValues & " FROM (((tblCactuShop" & TABLE_PREFIX & "Versions INNER JOIN tblCactuShop" & TABLE_PREFIX & "Products ON tblCactuShop" & TABLE_PREFIX & "Versions.V_ProductID = tblCactuShop" & TABLE_PREFIX & "Products.P_ID) INNER JOIN tblCactuShop" & TABLE_PREFIX & "ProductCategoryLink ON tblCactuShop" & TABLE_PREFIX & "Products.P_ID = tblCactuShop" & TABLE_PREFIX & "ProductCategoryLink.PCAT_ProductID) INNER JOIN tblCactuShop" & TABLE_PREFIX & "Categories ON tblCactuShop" & TABLE_PREFIX & "ProductCategoryLink.PCAT_CategoryID = tblCactuShop" & TABLE_PREFIX & "Categories.CAT_ID) LEFT OUTER JOIN tblCactuShop" & TABLE_PREFIX & "Suppliers ON tblCactuShop" & TABLE_PREFIX & "Products.P_SupplierID = tblCactuShop" & TABLE_PREFIX & "Suppliers.SUP_ID WHERE P_Name" & CInt(numLanguageID) & " <> '' AND V_Live ='y' AND P_Live = 'y' AND V_Live ='y' AND CAT_Live = 'y' AND V_CustomerGroupID IN (0," & DB_CG_ID & ") AND P_CustomerGroupID IN (0," & DB_CG_ID & ") AND CAT_CustomerGroupID IN (0," & DB_CG_ID & ") AND (SUP_Live <> 'n' OR SUP_Live IS NULL) AND P_Featured=0 ORDER BY P_ID DESC", numNewestProductsList, true)

if any one could help me it would save alot of needed time and i would be VERY greatful

Last edited by Andrew1986; Sep 3rd, 2007 at 09:36.
Reply With Quote

  #2 (permalink)  
Old Sep 7th, 2007, 14:26
Up'n'Coming Member
Join Date: Jul 2007
Location: Barry
Age: 22
Posts: 54
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Problem with custom new additions page....

Pleadelete This...
Reply With Quote
Reply

Tags
query, problem

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
problem accessing page number9 Starting Out 4 May 25th, 2007 05:30
page integer problem rtswimmer PHP Forum 2 Jul 5th, 2006 14:39
Error Page / .htaccess Problem lucidspoon PHP Forum 0 Dec 21st, 2005 20:41
Problem with my contact page tlynn721 Classic ASP 5 Aug 9th, 2005 00:50


All times are GMT. The time now is 09:57.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43