db2 - PHP alternative to mysql_data_seek for ODBC -


i converting php-mysql application php-odbc application. ie getting database migrated mysql db2.

while using mysql used mysql_data_seek function reset recordset pointer, not work odbc connection. tried , checked odbc_fetch_row($recordset,0) resetting recordset, not work. know how reset recordset via odbc connection?

according the docs, need pass 1 second parameter instead of 0.

to step through result more once, can call odbc_fetch_row() row_number 1, , continue doing odbc_fetch_row() without row_number review result.

however, note if driver doesn't support method, there may not way accomplish task:

if driver doesn't support fetching rows number, row_number parameter ignored.


Comments

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -