Código PHP:
$num=0;
while ($result_row = oci_fetch_array ($sql_parseada_producto, OCI_NUM))
{
$num=$num+1;
$unidades = "unidades";
$unidades = $unidades.$num;
//$var = "productos/".$result_row[3];
//echo $var;
echo "<tr>";
echo '<td><center>'?> <input type="text" name="<?php echo $unidades; ?>" id="unidades" maxlength="2" size="4" onkeypress="return permitir_caracteres(event,numeros)" value="0"/> <?php '</center>'.'</td>';
echo '<td><center>'.($result_row[0]).'</center>'.'</td>'; //Referencia
echo '<td><center>'.($result_row[1]).'</center>'.'</td>'; //Descripcion
echo '<td><center>'.($result_row[2]).'</center>'.'</td>'; //Precio
echo '<td><center>'?>
[B]<a href="imagenes/productos/" target='popup' onclick="window.open('', 'popup', 'width=300,height=300')">
<img src="imagenes/lupa1.gif" width="15" height="15" border="0"/>
</a> [/B]
<?php '</center>'.'</td>'; //Ruta Foto
echo "</tr>";
}