downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

ibase_num_fields> <ibase_modify_user
[edit] Last updated: Fri, 17 May 2013

view this page in

ibase_name_result

(PHP 5)

ibase_name_resultAssigns a name to a result set

Descrierea

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.

Parametri

result

An InterBase result set.

name

The name to be assigned.

Valorile întoarse

Întoarce valoarea TRUE în cazul succesului sau FALSE în cazul eșecului.

Exemple

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);
}
?>

Vedeți de asemenea



add a note add a note User Contributed Notes ibase_name_result - [0 notes]
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites