DOes anyone know how to get the column names returned in a COM object? I am using php and able to get the data from the object but the actual column names I cant seem to figure out. Below is a sample:

$comm = new COM("TDApiOle80.TDConnection");
$comm->Login("username", "password");
$comm->Connect("DOMAIN" , "PROJECT");
$almCommand = $comm->Command;
$almCommand->CommandText = $sql;
$recordSet = $almCommand->Execute;

I can cycle through $record with

while (!$recordSet ->EOR){
$busTeam = $recordSet->FieldValue("BusinessTeam");

That works great, now if I could only get the column names

Please help!