note 51339 deleted from function.mysql-affected-rows by nlopess

From: Date: Mon, 28 Mar 2005 11:16:12 +0000
Subject: note 51339 deleted from function.mysql-affected-rows by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-87082@lists.php.net to get a copy of this message
Note Submitter: KS ---- In libmysql.c (MySql source), mysql_affected_rows() returns mysql->last_used_con->affected_rows, while mysql_store_result() sets the field to the number of rows: mysql->affected_rows= result->row_count= result->data->rows. mysql_store_result() reads the entire result of a query to the client, after which mysql_fetch_row() can be called to fetch rows from the result set. So, mysql_affected_rows() can be used to retrieve the number of rows returned by a SELECT.

« previous php.notes (#87082) next »