Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#17 FetchField CAN support fieldoffset

closed-later
None
5
2005-11-03
2005-10-30
Anonymous
No

In Version 1.03, the mysqli_driver.inc states that //
$fieldOffset not supported by mysqli, and while
mysqli_fetch_field does not, mysqli offers the
additional function mysqli_fetch_field_direct, which
offers the same functionality as mysql_fetch_field with
the optional second parameter, although upper bound
checking is required.

using mysqli_fetch_field_direct the fieldoffset can be
incorporated as such:
if (-1 < $fieldOffset && $this->_numOfFields >
$fieldOffset)
{
$fieldObject =
@mysqli_fetch_field_direct($this->resultId, $fieldOffset);
}
else
{
$fieldObject = @mysqli_fetch_field($this->resultId);
}
return $fieldObject;

Discussion

  • Mark Dickenson
    Mark Dickenson
    2005-11-03

    Logged In: YES
    user_id=752816

    That's a PHP 5 only function and until PHP 5 becomes more
    stable and accepted I think we will leave support for that
    command out of the drivers.

     
  • Mark Dickenson
    Mark Dickenson
    2005-11-03

    • labels: 765861 -->
    • status: open --> closed-later