note 24059 deleted from function.mysql-affected-rows by dams

From: Date: Mon, 05 Aug 2002 20:10:50 +0000
Subject: note 24059 deleted from function.mysql-affected-rows by dams
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-34333@lists.php.net to get a copy of this message
hmm... there's a problem, is it possible to get the number of rows which are found by the where clause? the problem is if you have such table: id txt 1 a 2 b mysql_query("update tab set txt='a' where id = 1"); echo mysql_affected_rows(); the mysql_affected_rows() would return 0 since it didn't modify any row any ideas for workaround?

« previous php.notes (#34333) next »