to clarify, I realize in that query, the column name is 'id'.
That sql statement was just an example, the actual sql statement could be anything (unknown to me). This is inside a reusable object thus It needs to work with any sql statement.
The select statement may or may not use aliases. (again, unknown to me)
I need a way of getting the column name even when aliases used. this is an easy task using ado recordset object, i was just wondering if it's possible to do with a trick in php.
Perhaps there is some way to determine the column index in the table, then I could use another query to get actual name, or something like that...