?>
">
                        <input type="text" size="30" name="nombre" value="<?php 
echo $nombre;
?>
">Pre:<input type="text" size="10" name="pre_fijo" value=""><br>
                    </td>
                <tr>
                    <td>
            <input type="submit" value="Buscar">
            </td>
            </table>
        </form>
        <?php 
if ($nombre) {
    $result = $model->get_buscar_existencias($nombre);
    echo "<table border='1' class='resultTable'>";
    echo "<th>Corr</th><th>ID</th><th>Nombre</th><th>Existencias</th>";
    $i = 1;
    while ($row = $db->fetch_array($result)) {
        ?>
                <tr>
                    <td>
                        <?php 
        echo $i++;
        ?>
                    </td>
                    <td>
                        <?php 
        echo $row['id'];
        ?>