|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-02-18 11:01 UTC] keeper at fly dot srk dot fer dot hr
ifx_fetch_row return the same tuple more than once. This bug is also present in php 4.1.0. In php 4.0.5 everything works just fine. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 19:00:01 2025 UTC |
Of course. Here it is: $conn_id=ifx_connect ("prirodo2@nippurtcp", "user", "password"); if (! $conn_id) { echo "<b>Ne mogu se spojiti na bazu</b>"; exit; } $rid = ifx_prepare ($select, $conn_id); if (! $rid) { printf("Došlo je do pogreške u radu\n"); zavrsi($conn_id); } if (! ifx_do ($rid)) { printf("Ne mogu izvršiti upit nad bazom podataka\n"); zavrsi($conn_id); } $row = ifx_fetch_row ($rid, "FIRST"); while (is_array($row)) { for (reset($row); $fieldname = key($row); next($row)) { $rez = array_values($row); echo $rez[0]; } $row = ifx_fetch_row ($rid, "NEXT"); } $rowcount = ifx_num_rows($rid); ifx_free_result ($rid); ifx_close ($conn_id);