HTML parser allows parse HTML code into tree and uses this tree for something else. It can be downloaded from http://www.sourceforge.net/projects/html-parser
Very simple to use this class for return query result and access to fields by its name from MSSQL database. Tested on php v. 3.x and 4.x with MS SQL Server 6.5 and 7.0