then you won't see the error, you probably have incorrect db login information, you can put these two lines on top of your file:
ini_set("display_errors", 'On');
ini_set("error_reporting", E_ALL);