PHP code doesn't insert records into database
<p>My PHP program wont insert my records entered in the browser into my SQL database. See code below. This code is an update to one I asked about earlier. Someone suggested this for security among other reasons. </p>

<p>I DO NOT get any errors at all program runs fine in the browser however whenever I check the database no entries have been put in it after running the code. Am I missing something?  </p>

<pre><code>&lt;html&gt;
&lt;head&gt;
&lt;/head&gt; 
&lt;body&gt;
&lt;form action="register_development_file_1b.php" method="post"&gt;
    Email:  &lt;input type="text" name="email"&gt;&lt;br /&gt;
    Date:   &lt;input type="text" name="date"&gt;&lt;br /&gt;
    Time:   &lt;input type="text" name="time"&gt;&lt;br /&gt;
        &lt;input type="submit" name="submit"&gt;
&lt;/form&gt;

&lt;?php
     if(isset($_POST['submit']))
     {
       $con = mysql_connect("localhost","username","password") or die(mysql_mysql);
       mysql_select_db("databasename", $con) or die(mysql_query("databasename", $con));

      $email = mysql_real_escape_string($_POST['email']);
      $date = mysql_real_escape_string($_POST['date']);
      $time = mysql_real_escape_string($_POST['time']);

       $sql = "INSERT INTO 
            signups ('signup_email_address', 'signup_date','signup_time') 
            VALUES  ('".$email."','".$date."','".$time."')";

        mysql_query($sql, $con) or die(mysql_error());

        mysql_close($con);
    }
?&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>
