jamiecottonuk
Technical User
Hi would like to display data from a database within groups the following
Department 1
file namea
file namec
Department 2
file nameb
file named
Based unpon the following query
sSQL="SELECT * FROM search WHERE search_name LIKE ""%" & frmSearch & "%""
I have the following which prints out the headings for the departemnts
But how do I get the filenames associated with the departments under the corresponding headings?
Department 1
file namea
file namec
Department 2
file nameb
file named
Based unpon the following query
sSQL="SELECT * FROM search WHERE search_name LIKE ""%" & frmSearch & "%""
I have the following which prints out the headings for the departemnts
Code:
Do while Not recordset2.eof
Response.Write "<table><tr><th>"
Response.Write (recordset2("department"))
Response.Write "</th></tr>"
Response.Write "<tr><td>"
Response.Write "</td></tr>"
Response.Write "</table>"
recordset2.MoveNext
loop