Oracle 5.0 Reference Manual page 2264

Table of Contents

Advertisement

printf ("Updated records: %d\n", mysql_affected_rows());
mysql_query("COMMIT");
?>
The above example will output something similar to:
Updated Records: 10
Notes
See Also
mysql_num_rows
mysql_info
20.7.2.5.2.
mysql_client_encoding
Copyright 1997-2012 the PHP Documentation Group. [2230]
mysql_client_encoding
Returns the name of the character set
Description
string mysql_client_encoding(
resource link_identifier
=
Retrieves the
Parameters
link_identifier
Original MySQL API (Mysql)
Transactions
If you are using transactions, you need to call
your INSERT, UPDATE, or DELETE query, not after the COMMIT.
SELECT Statements
To retrieve the number of rows returned by a SELECT, it is possible to use
mysql_num_rows.
Cascaded Foreign Keys
mysql_affected_rows
use of ON DELETE CASCADE and/or ON UPDATE CASCADE in foreign key
constraints.
Warning
This extension is deprecated as of PHP 5.5.0, and will be removed in the
future. Instead, the
also
MySQL: choosing an API
Alternatives to this function include:
mysqli_character_set_name
=NULL);
variable from MySQL.
character_set
does not count rows affected implicitly through the
MySQLi
or
PDO_MySQL
guide and
The MySQL connection. If the link identifier is not specified, the
last link opened by
mysql_connect
2244
mysql_affected_rows
extension should be used. See
related FAQ
for more information.
is assumed. If no such link
after

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents