Class: ADORecordSet_mysql A simple way to get an array with row id index

I have a table with a primary key called 'id' and I use ADODB and return ADORecordSet_mysql. I need an array in which the identifier is associated with a string in the result set, but ADODBRecordSet_mysql only has a GetArray (int startRow) method that returns an array indexed by startRow (where the default value is 0).

I donโ€™t want the iteration through this result set to associate an identifier with each row, and I donโ€™t like the idea of โ€‹โ€‹going into the GetArray starting index. I would rather get the array back with its indexing using my primary key.

Is this possible or is my head in the clouds?

+3
source share

Source: https://habr.com/ru/post/1754661/


All Articles