#1 (permalink)  
Alt 02.03.2004, 16:49
 
Registriert seit: 15.11.2003
Beiträge: 91
Standard

Hallo,

ich m?chte 2 Seiten Angebote f?r diese und f?r jene Warengruppen haben,
das gleiche habe ich schon mit den News gemacht, das funzt auch,
in der specials. php habe ich nun versucht das gleiche einzubauen aber ich krieg's nicht hin,
in welche Zeile m?sste es kommen, oder wie mu? die Zeile aussehen ? :grml:
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #2 (permalink)  
Alt 03.03.2004, 07:00
 
Registriert seit: 15.11.2003
Beiträge: 91
Standard

dazu noch was konkretes:

der betreffende Abschnitt in der specials.php sieht bei mir jetzt so aus:

$specials_query_raw = " select
p.products_id,
p.products_model,
pd.products_name,
p.products_price,
p.products_tax_class_id,
p.products_image,
s.specials_new_products_price from " . TABLE_PRODUCTS . " p,
" . TABLE_PRODUCTS_DESCRIPTION . " pd,
" . TABLE_SPECIALS . " s where
p.products_status = '1' and
s.products_id = p.products_id and
p.products_id = pd.products_id and
pd.language_id = '" . $_SESSION['languages_id'] . "' and
c.categories_id != 17 and
c.categories_id != 18 and
c.categories_id != 19 and
c.categories_id != 159 and
c.categories_id != 161 and
s.status = '1'order by s.specials_date_added DESC";

was die Fehlermeldung:

"Unknown table 'c' in where clause"

produziert (leider) :fear:
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #3 (permalink)  
Alt 03.03.2004, 08:57
Benutzerbild von mzanier
xt:Commerce GmbH, Geschäftsführung
 
Registriert seit: 18.04.2003
Beiträge: 27.414
Standard

c.categories_id != 17 and


das c steht f?r eine tabelle, du du in deiner query gar nicht verwendets.
__________________
xt:Commerce Helpdesk
xt:Commerce Blog

xt:Commerce Warenwirtschaft

###

Offene Stellen bei xt:Commerce!
xt:Commerce stellt ein
###
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #4 (permalink)  
Alt 03.03.2004, 20:46
 
Registriert seit: 15.11.2003
Beiträge: 91
Standard

Zitat:
eine tabelle, du du in deiner query gar nicht verwendets.
und wie mach ich das sie verwendet wird ? :stupid:

(auch wenn das hier keine php-Schule ist...) :i:
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #5 (permalink)  
Alt 06.03.2004, 01:37
 
Registriert seit: 15.11.2003
Beiträge: 91
Standard

oh danke, danke, nicht alle auf einmal

drei Tage gr?beln, experimentieren und etwas Gl?ck
und der php-Newbie hats geschafft

hier das Ergebnis, falls es noch wer braucht:

$specials_query_raw = " select
p.products_id,
p.products_model,
pd.products_name,
p.products_price,
p.products_tax_class_id,
p.products_image,
s.specials_new_products_price from " . TABLE_PRODUCTS . " p,
" . TABLE_PRODUCTS_DESCRIPTION . " pd,
" . TABLE_SPECIALS . " s,
" . TABLE_PRODUCTS_TO_CATEGORIES . " p2c where
p.products_status = '1' and
s.products_id = p.products_id and
p.products_id = p2c.products_id and
p.products_id = pd.products_id and
pd.language_id = '" . $_SESSION['languages_id'] . "' and
p2c.categories_id != 17 and
p2c.categories_id != 18 and
p2c.categories_id != 19 and
p2c.categories_id != 159 and
p2c.categories_id != 161 and
s.status = '1'order by s.specials_date_added DESC";
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
Antwort

Lesezeichen

Stichworte
mal, specielles

Themen-Optionen
Ansicht

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are aus
Pingbacks are aus
Refbacks are aus



Alle Zeitangaben in WEZ +1. Es ist jetzt 22:27 Uhr.

Copyright © 2011 xt:Commerce GmbH / xt:Commerce International Ltd. - All Rights Reserved

xt:Commerce is a SafeCharge brand