|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-08-30 20:05 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 20:00:01 2025 UTC |
An error due to 2 databases connect ion at the same time in functuion ingres_fetch_object() , but all okey in function ingres_fetch_row() <?php $lin0 = ingres_connect (v16,v16,test9); ?? $lin1 = ingres_connect (kpl,kpl,kpl ); ? ?// ################## DO NOT WORK ?? ingres_query ("select * from m01 where id = 87",$lin0); ?? while ($row = ingres_fetch_object($lin0)) { ?? printf ("</>%s|%5.5d|%32.32s|</p>",++$i,$row->id,$row->dir); ?? } ?? ingres_query ("select * from m01 where id = 55",$lin1); ?? while ($row = ingres_fetch_object($lin1)) { ?? printf ("</>%s|%5.5d|%32.32s|</p>",++$i,$row->id,$row->dir); ?? } ?? / / ################## WORK ?? ingres_query ("select * from m01 where id = 87",$lin0); ?? while ($row = ingres_fetch_row($lin0)) { ?? print ( "</>$row[1] $row[2] $row[3] $row[4] $row[5] $row[6]</p>"); ?? } ?? ingres_query ("select * from m01 where id = 55",$lin1); ?? while ($row = ingres_fetch_row($lin1)) { ?? print ( "</>$row[1] $row[2] $row[3] $row[4] $row[5] $row[6]</p>"); ?? } ? ?> ?