Bueno aquí un trozo de código para que te de algo de luz...
Código PHP:
$Database='Localhost:/home/database/sample/employee.fdb';
$UserName='SYSDBA';
$UserName='masterkey';
$IBConnection = ibase_connect($Database,$UserName,$Password);
if !is_null( $IBConnection )
{
$sQuery='select emp_no, full_name';
$sQuery.=' from employee';
$Dataset = ibase_query($IBConnection, $sQuery);
$items='';
$emp_no=1;
while ($R = ibase_fetch_object($Dataset))
{
$selected='';
if ($emp_no==$R->EMP_NO) //Para seleccionar un registro en particular
$selected='SELECTED';
$items=$items . '<OPTION value="'.$R->EMP_NO.'" '.$selected.'>'. $R->FULL_NAME.'</OPTION>\n';
}
Aquí hay otro ejemplo con MySQL
Saludos cordiales