php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #13057 -An error in ingres_fetch_object() function
Submitted: 2001-08-30 07:53 UTC Modified: 2001-08-30 20:05 UTC
From: V dot Bulov at VAZ dot ru Assigned:
Status: Not a bug Package: *Database Functions
PHP Version: 4.0.6 OS: Linux Mandrake 7.2
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: V dot Bulov at VAZ dot ru
New email:
PHP Version: OS:

 

 [2001-08-30 07:53 UTC] V dot Bulov at VAZ dot ru
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>");             ??   
}                                                                          ?
?>  ?

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-08-30 20:05 UTC] sniper@php.net
RTFM: http://www.php.net/ingres_fetch_object

(hint: Check the parameters this function accepts)

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Apr 19 22:01:26 2025 UTC