note 90553 added to function.mysql-affected-rows
| From: | dantebbs at tebbs dot org | Date: | Mon, 27 Apr 2009 23:57:20 +0000 |
| Subject: | note 90553 added to function.mysql-affected-rows | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-153869@lists.php.net to get a copy of this message | ||
David kindly pointed out to me why my code here wasn't working. It turns out that I didn't
read the manual carefully enough.
mysql_num_rows takes a resource resulting from a call to mysql_query.
mysql_affected_rows takes a resource resulting from a call to mysql_connect.
So, the code example here is completely bogus, please disregard it.
-Dan
----
Server IP: 66.207.199.35
Probable Submitter: 206.124.146.116
----
Manual Page -- http://www.php.net/manual/en/function.mysql-affected-rows.php
Edit -- https://master.php.net/note/edit/90553
Del: integrated -- https://master.php.net/note/delete/90553/integrated
Del: useless -- https://master.php.net/note/delete/90553/useless
Del: bad code -- https://master.php.net/note/delete/90553/bad+code
Del: spam -- https://master.php.net/note/delete/90553/spam
Del: non-english -- https://master.php.net/note/delete/90553/non-english
Del: in docs -- https://master.php.net/note/delete/90553/in+docs
Del: other reasons-- https://master.php.net/note/delete/90553
Reject -- https://master.php.net/note/reject/90553
Search -- https://master.php.net/manage/user-notes.php