forest Posted March 2, 2004 Report Share Posted March 2, 2004 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: Link to comment Share on other sites More sharing options...
forest Posted March 3, 2004 Author Report Share Posted March 3, 2004 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: Link to comment Share on other sites More sharing options...
mzanier Posted March 3, 2004 Report Share Posted March 3, 2004 c.categories_id != 17 and das c steht f?r eine tabelle, du du in deiner query gar nicht verwendets. Link to comment Share on other sites More sharing options...
forest Posted March 3, 2004 Author Report Share Posted March 3, 2004 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: Link to comment Share on other sites More sharing options...
forest Posted March 6, 2004 Author Report Share Posted March 6, 2004 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"; Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.