|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #29600 something wrong
Submitted: 2004-08-10 15:31 UTC Modified: 2004-08-28 20:31 UTC
From: me at kamuzon dot ru Assigned:
Status: Not a bug Package: *Directory Services problems
PHP Version: 4.3.8 OS: OS/2
Private report: No CVE-ID: None
 [2004-08-10 15:31 UTC] me at kamuzon dot ru
values, which I got from db via odbc <> values, which I make by $a=blablablaNumber;

Reproduce code:
function getid($table,$field,$value){   global $dbcon;
  $sql="select id from $table where $field='$value'";
    if (odbc_fetch_into($result,$ware)) {
        return $ware[0];
      } else {
        return false;
$cid=getid('yaol_currencies','currencynick','usd'); //via odbc from db2 it gets id (smallint) from table yaol_currencies
echo $cid; //return -32766
if ($b[$a]=='ddd') {echo 'gut';}

Expected result:
string 'gut' not posted on output

but if I add line
then string 'gut' will posted on output

Actual result:
I think $b[$a] must be equalent $b[$cid] because $a=-32766 and $cid=-32766 but the last came from odbc.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2004-08-28 20:32 UTC]
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

Try var_dump() on the variables and you'll see why it doesn't work.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Jul 17 16:01:28 2024 UTC