Ver Mensaje Individual
  #3  
Antiguo 12-03-2013
cloayza cloayza is offline
Miembro
 
Registrado: may 2003
Ubicación: San Pedro de la Paz, Chile
Posts: 913
Reputación: 23
cloayza Tiene un aura espectacularcloayza Tiene un aura espectacular
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
Responder Con Cita