Welcome Guest, Not a member yet? Register   Sign In
Select options generated from Database
#11

[eluser]BitRanch[/eluser]
After digging through the CI source code, it looks like you could also use db->select() in a couple of other ways. The select() builds up an array of columns, so this should work:

Code:
$this->db->select('ATTR');
$this->db->select('DESCR');

This should also work:

Code:
$this->db->select(array('ATTR', 'DESCR'));

It would be nice if the documentation mentioned these alternate forms, since both ways could be useful at times.




Theme © iAndrew 2016 - Forum software by © MyBB