Get value list from php code

is possible to create dinamicaly value list of a select box from php code?
like:
Becose I need to get data from another Database (oracle) becore put in mySql database.
Thanks For All.
like:
- Code: Select all
function opuscolo__pullValue(&$record)
{
if ($record->strval('opuscolo'))
{
$r_unit = $record->display('outcome');
return "<select><option>$r_unit</option><option>value 2</option><option>value 3</option></select>";
}
}
Becose I need to get data from another Database (oracle) becore put in mySql database.
Thanks For All.