Quick comment:Added your code on line 86, the line under the already existing "if (isset"-codeblock.http.//urltoourticketsystem/scp/tickets.php?status=open&deptID=X,where X is a number, sorts open (not answered) tickets from that department.PS: Be sure to use deptID, not deptId, as URL's are case-sensitive.Thank you so much for this, it was of great use!:)