[SMARTY] html_options is possible to do that ?

"Reynier Perez Mira" <[email protected]>
Newsgroups gmane.comp.php.smarty.general
Message-ID <[email protected]>
I have this PHP Code:
$sql = $db->Execute("SELECT IDC, CNombre FROM os_catproductos ORDER BY IDC ASC");
$arrCat = array();
while ( $categorias = $sql->fetchRow() ) {
	$arrCat[] = $categorias;
}
$tpl->assign('catArr', $arrCat);

Then I need to build an SELECT working with catArr values. I try this in template:

<select id="arrCatSELECT" id="arrCatSELECT" size="1" onchange="javascript:document.location.href='index.php?cPath={$catArr.IDC}';">{html_options values={$catArr.IDC} output=$catArr.ANombre}</select>

But it not works. Any help ?

-- 
ReynierPM 
4to. Ing. Informática 
Linux User: #310201
El programador superhéroe aprende de compartir sus conocimientos. Es el referente de sus compañeros. Todo el mundo va a preguntarle y él, secretamente, lo fomenta porque es así como adquiere su legendaria sabiduría: escuchando ayudando a los demás... 

-- 
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.