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?
source
share