Update attempts.class.php

Update for single-quotes and formatting changes