what stupid mistake am i doing?
print_r($sections);
[CODE]
Array
(
[0] => Array
(
[id] => 1
[name] => Denim
)
[1] => Array
(
[id] => 5
[name] => Dresses
)
[2] => Array
(
[id] => 10
[name] => Test Parent
)
[3] => Array
(
[id] => 4
[name] => Tops
)
[4] => Array
(
[id] => 9
[name] => Winter Wear
)
)
[code=php]
<select name=”parent”>
<option value=”0″></option>
<?php
$product->view_parent_sections();
$fields = array(
‘id’ => ‘text’,
‘name’ => ‘text’);
$sections = $product->drowstoarray($fields);
for($i=0;$i<=count($sections[$i]);$i++)
{
echo ‘<option value=”‘.$sections[$i][‘id’].'”>’.$sections[$i][‘name’].'</option>’.”nr”;
}
?>
</select>