1
Hi having problem to populate drop down box with db i know how to do that with php but can not figure owt with XOOPS form
global $xoopsDB;
$query = $xoopsDB->query(' SELECT * FROM ' . $xoopsDB->prefix('pages_sections'));
$myrow = $xoopsDB->fetchArray($query);
$pageid = $myrow['sections_id'];
$pagetitle = $myrow['sections_link'];
$form->addElement(new XoopsFormSelect(_AM_PAGES_SECTIONS_PARENT, "sections_parent", $pageid, $pagetitle), false);
I did it like this but no result being shown. the results are being returned from database as used print result it was printing the returned results from db. but not working in selectbox