affected_rows always > 0

From: Date: Wed, 18 Oct 2000 12:40:11 +0000
Subject: affected_rows always > 0
Groups: php.db 
Request: Send a blank email to php-db+get-3720@lists.php.net to get a copy of this message
Hi all. I have my Linux-PHP box connected to an AIX-Informix one. All is working fine except that the following leads me to error. $connid= ifx_connect("database@server","userneme","password"); $consulta = "select * from sapat001 WHERE " . $criterio . " = " . $texto; $rs = ifx_prepare( $consulta, $connid); ifx_do($rs); if ( !ifx_affected_rows($rs)) { <<<<< always true but no record in result set echo ('no rows to process'); <<<<< never reached } else { $row=ifx_fetch_row($rs); . . . } Please give me some clues of what's happening. THX.

« previous php.db (#3720) next »