Looks like another bad tutorial... no surprise it doesn't work, of course.
For example, where is $delete ever defined? Or $checkbox? And where's the data sanitization to make sure that invalid data (or even worse, SQL injection attacks) are rejected? And what about all of the PHP error messages and invalid HTML markup being generated?
Did I mention it was a bad tutorial? 😉