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.
1
2 <?php
3 $updates = array(
4 1 => 'Eric',
5 5 => 'Filip',
6 7 => 'Larry'
7 );
8
9 $query = ibase_prepare("UPDATE FOO SET BAR = ? WHERE BAZ = ?");
10
11 while (list($baz, $bar) = each($updates)) {
12 ibase_execute($query, $bar, $baz);
13 }
14 ?>
15 |