Remove "clean_var" since it has never been set as a function and allow your errors to show in the website so next time you can just copy/paste the errors and we will be able to help you straight away not needing to guess what the problem is...
First row
$class = clean_var($_GET['class'])...