Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- foreach ($attribute_groups as $attribute_group) {
- echo $attribute_group['name'];
- print_r($attribute_group);
- echo '<select name="listaGrupe">';
- foreach ($attribute_groups['attribute'] as $attribute) {
- echo '<option value="'.$attribute.'">'.$attribute.'</option>';
- }
- echo '</select>';
- }
- ?>
- foreach ($attribute_groups as $attribute_group) {
- $options = '';
- $name = $attribute_group['name'];
- $output = '<select name="$name">';
- foreach ($attribute_groups['attribute'] as $attribute) {
- $options .= '<option value="'.$attribute.'">'.$attribute.'</option>';
- }
- echo $output.$options.'</select>';
- }
- if(!empty($attribute_groups)){
- foreach ($attribute_groups as $attribute_group) {
- $options = '';
- $name = $attribute_group['name'];
- $output = '<select name="$name">';
- foreach ($attribute_groups['attribute'] as $attribute) {
- $options .= '<option value="'.$attribute.'">'.$attribute.'</option>';
- }
- echo $output.$options.'</select>';
- }
- }
Add Comment
Please, Sign In to add comment