I am working on a project that is using a GoDaddy private server. Looks like the project is using `mysql_connect` to connect to the db. 

I have worked with PDO before and figured I would just create a new file within the server so I can connect by using PDO. However I can't get it to work, and I can't get any errors to show up, nothing seems to happen when I run this code. 

If I try to echo out a string after that block of code, the string wont show up, if I echo out a string before this block of code, the string will show up. 

If I try to execute a prepared statement nothing happens. PW, UN, HOST, and db name are all correct. Am I doing something wrong? 

```
<?php
    error_reporting(E_ALL);
    $dns = "mysql:host=localhost;dbname=mainsql;";
    $username = "bowski";
    $passwd = "kingsman1";
    try {
        $db = new PDO($dsn, $username, $passwd);
} catch (PDOException $ex) {
        echo $ex->getMessage();
}

```