PHP Manual
Prev |  | Next

# ibase_execute

(3.0.6 - 3.0.18 only, PHP 4 >= 4.0.0)

ibase_execute -- Execute a previously prepared query

## Description

``int ibase_execute` (int query [, int bind_args])`

Execute a query prepared by ibase_prepare(). This is a lot more effective than using ibase_query() if you are repeating a same kind of query several times with only some parameters changing.

    <?php
        $updates = array(
            1 => 'Eric',
            5 => 'Filip',
            7 => 'Larry'
        );

        $query = ibase_prepare("UPDATE FOO SET BAR = ? WHERE BAZ = ?");

        while (list($baz, $bar) = each($updates)) {
            ibase_execute($query, $bar, $baz);
        }
    ?>

Prev | Home | Next
ibase_prepare | Up | ibase_trans