![]() |
![]() ![]() |
![]() |
![]() ![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 94 Pomógł: 0 Dołączył: 25.12.2004 Ostrzeżenie: (0%) ![]() ![]() |
W jaki spodób wydobyć dane z tabeli MySQL
+----------------+--------------+------------------+-----------------------------+----------------------------+ | atributes_id | options_id | options_name | options_values_name | options_values_price | +----------------+--------------+------------------+-----------------------------+----------------------------+ |_________1 |________1 | ______rozmiar| ________________S | _____________30.00| +----------------+--------------+------------------+-----------------------------+----------------------------+ |_________2 |________1 | ______rozmiar| ________________M | _____________60.00| +----------------+--------------+------------------+-----------------------------+----------------------------+ |_________3 |________2 | _______kolor| ______________bialy | _____________15.00| +----------------+--------------+------------------+-----------------------------+----------------------------+ |_________4 |________2 | _______kolor| _____________czarny | _____________24.00| +----------------+--------------+------------------+-----------------------------+----------------------------+ do tablicy aby dane prezentowaly sie w niej w taki sposób atriutes[] = Array(2) 0 => Array (2) options_name => Rozmiar attributes_array => Array (2) 0 => Array (5) attributes_id => 1 options_values_name => S options_values_price => 30.00 1 => Array (5) attributes_id => 2 options_values_name => M options_values_price => 60.00 1 => Array (2) products_attributes_name => kolor attributes_array => Array (2) 0 => Array (5) attributes_id => 3 options_values_name => bialy options_values_price => 15.00 1 => Array (5) attributes_id => 4 options_values_name => czarny options_values_price => 24.00 |
|
|
![]() ![]() |
![]() |
Wersja Lo-Fi | Aktualny czas: 15.06.2025 - 05:04 |