[eluser]mhungou04[/eluser]
I ve got a solution for this problem but it s not nice.
In my controler:
$query = $this->db->get('product');
$data['product'] = $query->result_array();
$query1 = $this->db->get('category');
$data['category'] = $query1->result_array();
$this->parser->parse($data,'view.html');
and in my view:
{product}
//do some thing...
<select name = 'cat_id'>
<option value={cat_id} select = "selected">{cat_name}</option>
{/product}
{category}
<option value={cat_id} select = "selected">{cat_name}</option>
{/category}
</select>
Any one can do better than me. Plz give me some advice