Below is the code I'm using to run the query, parse the result set, and parse the rows (respectively)
$exec_ret = $DBS->SQLExecSQL($STMT);
while ($DBS->SQLFetch() == *PLibdata::RET_OK)
{
$rowfetch = $DBS->{Row}->GetCharValue($colname[$i]);
}
Can I grab the column/field name of a temp table using similar syntax? $colname[$i]
is predefined at the top to hold the column/field names. This is hard-coded right now, but I would rather automate it by pushing values into $colname
inside of a loop that runs before the rows are parsed.