Any help, suggestions welcome.
Why don't you just use asp to pull the data from the database and use the script to handle to formatting?
Set objCon = Server.CreateObject ("ADODB.Connection")
Set objRec= Server.CreateObject ("ADODB.Recordset")
objLevels.sort=" YourFieldName ASC"
strSQL = "SELECT * FROM Yourtable"
objRec.Open strSQL, objCon, adOpenStatic, adLockReadOnly, adCmdText
Do something like this to output your data in the table..
if (not ObjRec.bof) or (not objRec.eof)