php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10416 Fetch_cursor return second record not first.
Submitted: 2001-04-20 04:26 UTC Modified: 2002-08-13 22:47 UTC
From: tomasz dot fadrowski at dtcentrum dot com Assigned:
Status: Not a bug Package: Oracle related
PHP Version: 4.0.4pl1 OS: WINNT, WIN98, Aix
Private report: No CVE-ID: None
 [2001-04-20 04:26 UTC] tomasz dot fadrowski at dtcentrum dot com
When I try display records from cursor connected to oracle by function "Ora_logon" my results of all records display from second to last rows - not display first row.
 Simple code :
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>
<head>
	<title>Untitled</title>
</head>

<body>
<?php

PUTENV("ORACLE_HOME=D:\\ORANT\\");
$CONNECTION=Ora_logon("user/password@db","");
$SQL="SELECT rownum, artean13, artlibl FROM artdgene";
$CURSOR=ORA_DO($CONNECTION,$SQL);
WHILE(ORA_FETCH($CURSOR))
{
PRINT(ORA_GETCOLUMN($CURSOR,0));print(" ");print(ORA_GETCOLUMN($CURSOR,1));print(ORA_GETCOLUMN($CURSOR,2));
print("<BR>");
}
ORA_CLOSE($CURSOR);
ORA_LOGOFF($CONNECTION);

?>

</body>
</html>

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-08-13 22:47 UTC] kalowsky@php.net
Thank you for taking the time to report a problem with PHP.
Unfortunately you are not using a current version of PHP -- 
the problem might already be fixed. Please download a new
PHP version from http://www.php.net/downloads.php

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 19:01:29 2024 UTC