If I am retrieving two fields from a table and using a FETCH command to put them into an array, is there a way to make that array have field 1 as the key and field 2 as the associated value to that key? I would like to be able to use array_key_exists later to find rows in that array.
Currently if I use ASSOC I get a numeric key with two named values. Or am I missing something.
I assume I could parse it and create the FETCH array but would prefer avoiding that step. Thanks