|
Home
iRate! IceMelon IM Tutorials Headlines CoolSites PHP Functions |
|
Most Referenced Functions » google_pagerank() » preg_replace() » imagecreatefrompng() » site_pageranks() » imagepng() » imagedestroy() » imagestring() » imagecolorallocate() » htmlentities() » preg_match() » fopen() » header() » getimagesize() » preg_match_all() » session_start() » htmlspecialchars() » ob_start() » ob_flush() » strstr() » flush() » strpos() » setcookie() » str_replace() » array2vars() » nl2br() » preg_split() » ereg() » ereg_replace() » urlencode() » readgzfile() Become a sponsor for $15/month. Link is sitewide - PR5 homepage, 20+ PR4 pages, 90+ PR3 pages. Email dave[AT]icemelon[D0T]c0m. |
PHP Functions
Function: sesam_affected_rows (PHP 3 CVS only) sesam_affected_rows -- Get number of rows affected by an immediate queryDescriptionint 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";
?>
Related Function(s) |