|
|||
|
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: |
|
|||
|
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: |
|
||||
|
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 ### |
|
|||
|
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"; |
![]() |
| Lesezeichen |
| Stichworte |
| mal, specielles |
| Themen-Optionen | |
| Ansicht | |
|
|