1
Hi, i am currently porting some code into the cdbase module. I would like to know how to fill XoopsFormSelect with data directly from the db.
for instance: i use
$sql = "SELECT id_gen, des FROM ".$xoopsDB->prefix("cdbase_gens");
$result = $xoopsDB->query($sql);
to get the values i want from the database.
I would like to use the returned values (stored in $result) to auto populate the XoopsFormSelect object.
is there an easy way to do this? or must i use a while loop to fill an array and then pass this to the object?
Thanks
jae