Why is my SQL PHP Code not working? : <p>My PHP code is not working.</p>

<pre><code>&lt;?php

include config.php;

function addEntryInDB() {
    $nxtaddr    = $_POST    ["txin_src"];
    $nxtkey     = $_POST    ["txin_key"];
    $coinaddr   = $_POST    ["txout_src"];
    $burntxid   = $_POST    ["txid"];
    $coinkey    = $_POST    ["txout_src"];

    mysql_select_db($sql_db, $conn);

    if(!$conn ) {
        die('Could not connect: ' . mysql_error());
    }

    $sql = ("INSERT INTO X (
                NXTAddress,
                NXTPubKey,
                AltCoinAddr,
                AltCoinKeys,
                PoBTXID,
                ContactDateCreated
            )
            VALUES (
                '$nxtaddr',
                '$nxtkey',
                '$coinaddr',
                '$coinkey',
                '$burntxid',
                NOW()
            )")

    mysql_query($sql, $conn);
    mysql_close($conn);
}
</code></pre>

<p>I am mostly getting unexpected T_STRING related errors. I know it screams amateur hour but any help would be umm... helpful </p>
