[PHP-DEV] Bug #1346: ifx_fetch_row problem From: mhromada <email protected>
Date: 04/23/99

From: mhromada <email protected>
Operating system: Solaris 2.7
PHP version: 3.0.7
PHP Bug Type: Other
Bug description: ifx_fetch_row problem

$conn=ifx_connect(peterk);
if (!$conn) {
    echo "An error occured.\n";
    exit;
}

  $vyber="select * from cisdo";
$result = ifx_query ($vyber,$conn);
if (!$result) {
if (!$conn) {
    echo "An error occured.\n";
    exit;
}

  $vyber="select * from cisdo";
$result = ifx_query ($vyber,$conn);
if (!$result) {
    echo "An error occured.\n";
    exit();
}
$row = ifx_fetch_row ($result,"5");

 for($row; $fieldname=key($row); next($row)) {
        echo "$fieldname = ";
        printf ("%s <BR>\n",$row[$fieldname]);
    }

Problem ifx_fetch_row does not accepts number as absolute
position of row in $result nor LAST

Do automaticly next in all cases

--
PHP Development Mailing List   http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe <email protected>
For help: php-dev-help <email protected>