This PHP Code is not working as intended, why?

Printable View