sesam_affected_rows --
Get number of rows affected by an immediate query
Syntax
int sesam_affected_rows ( string result_id )
result_id is a valid result id returned by
sesam_query().
Returns the number of rows affected by a query associated with
result_id.
The sesam_affected_rows() function can only
return useful values when used in combination with "immediate"
SQL statements (updating operations like
INSERT, UPDATE and
DELETE) because SESAM does not deliver any
"affected rows" information for "select type" queries. The
number returned is the number of affected rows.
Example 1. sesam_affected_rows() example
<?php $result = sesam_execimm("DELETE FROM PHONE WHERE LASTNAME = '" . strtoupper($name) . "'"); if (!$result) { /* ... error ... */ } echo sesam_affected_rows($result). " entries with last name " . $name . " deleted.\n"; ?>
sesam affected rows php code on this is provided for your study purpose, it will guide you to know how create and design a website using php. use it to practice and train your self online
Php sesam affected rows syntax tutorial
php tutorial guide and code design are for easy learning and programming. The code practice section provided at the top is for practising of this syntax. Use the code section up to practice your php programming online. Learning php is very easy, all you need is to use the examples on this site and practice them to perfect your skills.