cvs: php4 /pear/DB msql.php
| From: | Thomas V.V.Cox | Date: | Tue, 07 Aug 2001 11:55:55 +0000 |
| Subject: | cvs: php4 /pear/DB msql.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-432@lists.php.net to get a copy of this message | ||
cox Tue Aug 7 07:55:55 2001 EDT
Modified files:
/php4/pear/DB msql.php
Log:
added affectedRows()
Index: php4/pear/DB/msql.php
diff -u php4/pear/DB/msql.php:1.18 php4/pear/DB/msql.php:1.19
--- php4/pear/DB/msql.php:1.18 Mon Jul 30 16:43:12 2001
+++ php4/pear/DB/msql.php Tue Aug 7 07:55:55 2001
@@ -16,7 +16,7 @@
// | Authors: Sterling Hughes <sterling@php.net> |
// +----------------------------------------------------------------------+
//
-// $Id: msql.php,v 1.18 2001/07/30 20:43:12 ssb Exp $
+// $Id: msql.php,v 1.19 2001/08/07 11:55:55 cox Exp $
//
// Database independent query interface definition for PHP's Mini-SQL
// extension.
@@ -151,6 +151,17 @@
}
return $rows;
}
-}
-?>
+ /**
+ * Gets the number of rows affected by a query.
+ *
+ * @return number of rows affected by the last query
+ */
+
+ function affectedRows()
+ {
+ return @msql_affected_rows($this->connection);
+ }
+
+}
+?>
\ No newline at end of file