php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1872 i can't use function "sybase_fetch_object" but function sybase_fetch_array ok!
Submitted: 1999-07-26 02:44 UTC Modified: 1999-07-31 20:32 UTC
From: rick at pnet dot com dot cn Assigned:
Status: Closed Package: Sybase (dblib) related
PHP Version: 4.0 Beta 1 OS: linux kernel 2.0.36
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: rick at pnet dot com dot cn
New email:
PHP Version: OS:

 

 [1999-07-26 02:44 UTC] rick at pnet dot com dot cn
---script ------------------
<?php
	$conn=sybase_pconnect("SYBASE","sa","");
 	if ($conn<1){
  		echo "???ݿ?????ʧ??\$conn is $conn\n<br>";
  		exit();
  	}
  	$query="select loginname,name,acctype,prepay,case,state from ppptable\n";
  	$result=sybase_query($query,$conn);
  	if($result<1){
  		echo "database error<br>\n";
  		exit;
 	}

	$count=0;
	sybase_data_seek($result,1);
	while(is_object($res=sybase_fetch_object($result)))
	{
		$count++;
  	
  	echo "$res->name <br>";
  	}

?>
------end script -----------------------------------------------

BUG:
  just sybase_fetch_object return  NULL;
 but sybase_fetch_array work fine! why?????????

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-07-31 20:32 UTC] zeev at cvs dot php dot net
Fixed in the latest CVS
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 05:01:27 2024 UTC