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

search for in the

cubrid_bind> <Cubrid Functions
Last updated: Fri, 24 Sep 2010

view this page in

cubrid_affected_rows

(PECL CUBRID >= 8.3.0)

cubrid_affected_rowsGet number of affected rows in previous Cubrid operation

Description

int cubrid_affected_rows ( resource $req_identifier )

The cubrid_affected_rows() function is used to get the number of rows affected by the SQL sentence (INSERT, DELETE, UPDATE).

Parameters

req_identifier

Request identifier.

Return Values

Number of rows affected by the SQL sentence, when process is successful.

-1, when SQL sentence is not INSERT, DELETE or UPDATE.

Examples

Example #1 cubrid_affected_rows() example

<?php
$req 
cubrid_execute ($con"delete from person where name like ’j%’ ");
if (
$req) {
   
$row_count cubrid_affected_rows ($req);
   echo 
$row_count;
   
cubrid_close_request ($req);
}
?>

See Also



add a note add a note User Contributed Notes
cubrid_affected_rows
There are no user contributed notes for this page.

cubrid_bind> <Cubrid Functions
Last updated: Fri, 24 Sep 2010
 
 
show source | credits | sitemap | contact | advertising | mirror sites