Regarding the way binary or long column data is returned refer to odbc_binmode() and odbc_longreadlen().
Field indices start from 1. Regarding the way binary or long column data is returned refer to odbc_binmode () and odbc_longreadlen().