hi guys,
i have this code and i'm trying to include "sub_note" info into select form and i an confuse as to how to do it.
if i print_r $materials i can see the info in an array but i dont know how to enter it in < select >
$db = JFactory::getDBO();
$sql = "SELECT material_id AS val, title, sub_note "
. " FROM #__rsform_material ";
$db->setQuery($sql);
$materials = $db->loadObjectList();
$matlist[] = JHTML::_('select.option', '0', JText::_( 'Fabric Subcategory' ), 'val', 'title');
$matlist = array_merge( $matlist, $materials );
echo JHTML::_('select.genericlist', $matlist, 'material', 'class="inputbox" size="1"','val', 'title', $row['material_id'] );