Pessoal , boa tarde. Queria saber se alguém pode me ajudar no seguinte problemas: Estou fazendo um select em dois campos no banco e quandando-os cada um em um array. tenho que montar um select box HTML para listar estes campos. Se alguém poder me ajudar serei muito grato. O meu escript está o seguinte: ?php include("../../uteis/verMaquina.php"); require_once("../../uteis/conexaoI5.class.php"); $c=new conexaoI5(); if(!$c->conx)exit("99"); $query = "SELECT TABGKCOD , TABGDESC FROM TESTFILE/TABG WHERE TABGKTIP = '01'"; $stmt=i5_prepare($query); if(!$stmt){ i5_close($c->conx); exit("99"); } $result=i5_execute($stmt); if(!$result){ i5_close($c->conx); exit("99"); } $row = i5_fetch_array($stmt); if(trim($row[0])==""){ i5_close($c->conx); exit("23"); } echo "<body background='lvback.gif' ></body> "; echo "<table width='100%' border='1' cellspacing='1' cellpadding='1'>" ; echo " <colgroup>" ; echo "<col width='10%'> " ; echo "<col width='40%'> " ; echo "</colgroup>" ; while(trim($row[0])!=""){ echo "<tr> <td>$row[0]</td> <td>$row[1]</td>"; $row=i5_fetch_array($stmt); } echo "</table>"; echo "</body>"; ?>