![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 20 Pomógł: 0 Dołączył: 9.08.2007 Ostrzeżenie: (0%) ![]() ![]() |
hej Mam problem z zapytaniem. Jest to sklep oscommerce, a ja mam baze mysql 5. Gdzie moge sie spodziewac błedu?(IMG:http://forum.php.pl/style_emoticons/default/questionmark.gif)
1054 - Unknown column 'biuroekspert.p2pef.manufacturers_id' in 'on clause' select count(distinct p.products_id) as total from (((products p left join products_to_products_extra_fields p2pef on p.products_id=p2pef.products_id) left join manufacturers m using(manufacturers_id), products_description pd) left join specials s on p.products_id = s.products_id, categories c, products_to_categories p2c) where p.products_status = '1' and c.categories_status = '1' and p.products_id = pd.products_id and pd.language_id = '1' and p.products_id = p2c.products_id and p2c.categories_id = c.categories_id and p2c.products_id = p.products_id and p2c.products_id = pd.products_id and pd.language_id = '1' and p2c.categories_id = '23' and ((pd.products_name like '%Segregatory%' or m.manufacturers_name like '%Segregatory%') ) dzieki |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Przyjaciele php.pl Postów: 1 595 Pomógł: 282 Dołączył: 24.09.2007 Skąd: Reda, Pomorskie. Ostrzeżenie: (0%) ![]() ![]() |
w tabeli products_to_products_extra_fields nie ma pola manufacturers_id użytego do złączenia z tabelą manufacturers w JOIN ...
|
|
|
![]()
Post
#3
|
|
Grupa: Zarejestrowani Postów: 20 Pomógł: 0 Dołączył: 9.08.2007 Ostrzeżenie: (0%) ![]() ![]() |
rzeczywiscie w tabeli products_to_products_extra_fields nie ma pola manufactures_id. Ale zainstalowałem sklep oscommerce ponownie tylko w innym folderze przenioslem baze danych z tego starego sklepu i tez w tej tabeli nie ma tego pola a wyszukuje mi produkty prawidlowo jestem w kropce|(IMG:http://forum.php.pl/style_emoticons/default/sad.gif)
|
|
|
![]()
Post
#4
|
|
Grupa: Przyjaciele php.pl Postów: 1 595 Pomógł: 282 Dołączył: 24.09.2007 Skąd: Reda, Pomorskie. Ostrzeżenie: (0%) ![]() ![]() |
prawdopodobnie pole manufacturers_id masz w tabeli products, w takim razie zamień fragment using(manufacturers_id) na ON p.manufacturers_id = m.manufecturers_id
|
|
|
![]() ![]() |
![]() |
Aktualny czas: 23.08.2025 - 20:34 |