$result = mssql_query("Select Clevel,Resets,Money,LevelUpPoint From Character where Name='$name'");
to
$result = mssql_query("Select Clevel,Resets,Money,LevelUpPoint,class From Character where Name='$name'");
and add
if($row[4] == 0 or $row[4] == 1 or $row[4] == 2) { $resetpoints =...