Im getting the data like this:
Code: Select all
$pricelist = array();
$q = "SELECT * FROM ".cms_db_prefix()."module_sms_prices WHERE product = $product_id ORDER BY price ASC";
$dbresult = $db->Execute( $q );
if( $dbresult ) {
while( $row = $dbresult->FetchRow() )
{
$pricelist['kr. '.$row['price'].',-'] = $row['id'];
}
}
$this->smarty->assign('pricelist_input', $this->CreateInputDropDown( $id, 'price', $pricelist, -1));
Hope somebody can understand this and thanks in advance...