Please wait while we load your page...
 

Announcements

PHP Manual :: ibase_name_result



ibase_modify_user || ibase_num_fields || Firebird/InterBase Functions || PHP Manual

(PHP 5, PHP 7)

ibase_name_resultAssigns a name to a result set

Description

bool ibase_name_result ( resource $result , string $name )

This function assigns a name to a result set. This name can be used later in UPDATE|DELETE ... WHERE CURRENT OF name statements.

Parameters

result

An InterBase result set.

name

The name to be assigned.

Return Values

Returns TRUE on success or FALSE on failure.

Examples

Example #1 ibase_name_result() example

<?php
$result 
ibase_query("SELECT field1,field2 FROM table FOR UPDATE");
ibase_name_result($result"my_cursor");

$updateqry ibase_prepare("UPDATE table SET field2 = ? WHERE CURRENT OF my_cursor");

for (
$i 0ibase_fetch_row($result); ++$i) {
    
ibase_execute($updateqry$i);
}
?>

See Also



ibase_modify_user || ibase_num_fields || Firebird/InterBase Functions || PHP Manual
Live Chat Not Available