From:             [EMAIL PROTECTED]
Operating system: Linux
PHP version:      4.1.2
PHP Bug Type:     *General Issues
Bug description:  arguments to functions or again ODBC bug.

This function:
function GetTID($kid)
{
$a=$kid;
$conn = odbc_pconnect("$database", "$username", "$password");
$query = "select * from KontrahIO where KontrId2 = ".$kid;
$table = odbc_do($conn,$query);
$xi=1;
odbc_fetch_row($table);
while (odbc_fetch_row($table)) {
$tid[$xi]=odbc_result($table,9);
$a=$tid[$xi];
$xi++;
}
odbc_close($conn);
return $tid;
}

works but this one:

function GetTID($kid)
{
$database="Hetman";
$username="admin";
$password="pewnienie";
$conn = odbc_pconnect("$database", "$username", "$password");
$query = "select * from KontrahIO where KontrId2 = ".$kid;
$table = odbc_do($conn,$query);
$xi=1;
odbc_fetch_row($table);
while (odbc_fetch_row($table)) {
$tid[$xi]=odbc_result($table,9);
$a=$tid[$xi];
$xi++;
}
odbc_close($conn);
return $tid;
}

no... It's returning nothing


-- 
Edit bug report at http://bugs.php.net/?id=15900&edit=1
-- 
Fixed in CVS:        http://bugs.php.net/fix.php?id=15900&r=fixedcvs
Fixed in release:    http://bugs.php.net/fix.php?id=15900&r=alreadyfixed
Need backtrace:      http://bugs.php.net/fix.php?id=15900&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=15900&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=15900&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=15900&r=notwrong
Not enough info:     http://bugs.php.net/fix.php?id=15900&r=notenoughinfo
Submitted twice:     http://bugs.php.net/fix.php?id=15900&r=submittedtwice

Reply via email to