it's entirely possible, if you use a command such as;
mssql_fetch_array which puts the data into an associative array so you can call an individual element by it's name according to the database.
e.g.
$line = mssql_fetch_array($result);
print $line['name_of_field'];
also, instead use foreach which makes it alot easier looping through arrays, alot cleaner also!
e.g.
$line = mssql_fetch_array($result);
foreach($line as $entry)
{
print "$entry";
}
which makes things alot easier to read and a hell of alot cleaner when reading.
Hope this helps!