Re: RE: PHP 4.0 Bug #6483 Updated: mysql_affected_rows not functioning

From: Date: Fri, 01 Sep 2000 21:26:53 +0000
Subject: Re: RE: PHP 4.0 Bug #6483 Updated: mysql_affected_rows not functioning
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-31623@lists.php.net to get a copy of this message
On Fri, 1 Sep 2000, Tory Smith wrote: >Why did it work in PHP3, but not now? You're mixing mysql_num_rows() and mysql_affected_rows() with each other. The former needs result identifier as argument and latter link identifier as optional argument. And this is how it's in php3 too so you're example code could not have worked correctly in php3 either. --Jani >-----Original Message----- >From: Bug Database [mailto:php-dev@lists.php.net] >Sent: Friday, September 01, 2000 11:17 AM >To: tsmith@qsigroup.com >Subject: PHP 4.0 Bug #6483 Updated: mysql_affected_rows not functioning > > >ID: 6483 >Updated by: sniper >Reported By: tsmith@qsigroup.com >Status: Closed >Bug Type: MySQL related >Assigned To: >Comments: > >http://www.php.net/manual/function.mysql-affected-rows.php int >mysql_affected_rows ([int link_identifier]) Leave that $resultB out. Then >it works. --Jani > >Full Bug description available at: http://bugs.php.net/?id=6483 > > > > > -- Joo.

« previous php.dev (#31623) next »