A dire il vero ti basta aggiungere queste 2 righe in cima al codice
Codice PHP:
error_reporting(E_ALL);
ini_set('display_errors'1);