The line
print("<tr class='pointer' onclick=location.href='inventory.phpsetID=$setid&catID=$catID'>");
triggers errors when I validate my code:
Error: "=" in an unquoted attribute value. Probable causes:
Attributes running together or a URL query string in an unquoted attribute value
I don't know what triggers it, and don't understand the explanation of the error.