odbc_fetch_array($resultado)

Garanya
26 de Enero del 2006
Como podría recorrer odbc_fetch_array($resultado) varias veces. En el siguiente script pretendo que me llene un combo y una tabla pero no consigo que llene la tabla

$resultado = odbc_do($conex, $consulta);

echo \\\\\\\\\\\\\\\\'<select name=\\\\\\\\\\\\\\\"codi\\\\\\\\\\\\\\\">\\\\\\\\\\\\\\\\';

//Mostramos los registros en forma de menú desplegable

while ($row=odbc_fetch_array($resultado))
{
echo \\\\\\\\\\\\\\\\'<option>\\\\\\\\\\\\\\\\'.$row[\\\\\\\\\\\\\\\"LVCODE\\\\\\\\\\\\\\\"];
}
echo \\\\\\\\\\\\\\\\'</select>\\\\\\\\\\\\\\\\';


//Mostramos los registros
echo \\\\\\\\\\\\\\\\'<table border=\\\\\\\\\\\\\\\"1\\\\\\\\\\\\\\\">\\\\\\\\\\\\\\\\';
echo \\\\\\\\\\\\\\\\'<tr><td>CODIGO</td><td>NOMBRE</td><td>N FISCAL</td></tr>\\\\\\\\\\\\\\\\';

while ($row=odbc_fetch_array($resultado))

{

echo \\\\\\\\\\\\\\\\'<tr><td>\\\\\\\\\\\\\\\\'.$row[\\\\\\\\\\\\\\\"LVCODE\\\\\\\\\\\\\\\"].\\\\\\\\\\\\\\\\'</td>\\\\\\\\\\\\\\\\';

echo \\\\\\\\\\\\\\\\'<td>\\\\\\\\\\\\\\\\'.$row[\\\\\\\\\\\\\\\"LVNOMB\\\\\\\\\\\\\\\"].\\\\\\\\\\\\\\\\'</td>\\\\\\\\\\\\\\\\';

echo \\\\\\\\\\\\\\\\'<td>\\\\\\\\\\\\\\\\'.$row[\\\\\\\\\\\\\\\"LVNOMF\\\\\\\\\\\\\\\"].\\\\\\\\\\\\\\\\'</td></tr>\\\\\\\\\\\\\\\\';

}
echo \\\\\\\\\\\\\\\\'</table>\\\\\\\\\\\\\\\\';
echo \\\\\\\\\\\\\\\\'</div>\\\\\\\\\\\\\\\\';
echo \\\\\\\\\\\\\\\\'</body>\\\\\\\\\\\\\\\\';

odbc_free_result($resultado);


Gracias