Re: Error in function mysql_affected_rows() ?
| From: | Jayme Jeffman Filho | Date: | Sun, 20 Aug 2000 21:30:33 +0000 |
| Subject: | Re: Error in function mysql_affected_rows() ? | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-2193@lists.php.net to get a copy of this message | ||
Try put some where clause on the records you are working with and check the
result again. If you delete or update all records the "mysql_affected_rows()
" returned value is not reliable. I read that in a book .
I hope it helps.
Jayme.
-----Mensagem original-----
De: Johan Andersson <johan@andersson.net>
Para: php-db@lists.php.net <php-db@lists.php.net>
Data: Domingo, 20 de Agosto de 2000 16:34
Assunto: [PHP-DB] Error in function mysql_affected_rows() ?
For me, mysql_affected_rows() always returns 0...
Has anybody got it working.. ?
(The function should return the affected rows after a INSERT or UPDATE or
DELETE)
Thanks!