title: MySQL Not Inserting Into Column
body: <p>I have the code below: </p>
  
  <pre><code>    &lt;html&gt;&lt;body&gt;
  &lt;?php
  $con = mysql_connect("localhost","will","blahblah");
  if (!$con)
    {
    die('Could not connect: ' . mysql_error());
    }
  
  mysql_select_db("blahblah", $con);
  
  $sql="INSERT INTO links (link, notes, username)
  VALUES
  ('$_POST[link]','$_POST[notes]','$_POST[username]')";
  
  if (!mysql_query($sql,$con))
    {
    die('Error: ' . mysql_error());
    }
  echo "1 link added";
  
  mysql_close($con)
  ?&gt;
  &lt;/body&gt;&lt;/html&gt;
  </code></pre>
  
  <p>It should insert a link and notes and a username into my database but it doesn't. I am clueless as to why and would appreciate some help with it! It is getting these values from the form below:</p>
  
  <pre><code>   &lt;div id="stylized" class="myform"&gt;
  &lt;form id="form" name="form" method="post" action="user.php"&gt;
  &lt;label&gt;Username
  &lt;span class="small"&gt;Enter Your Username&lt;/span&gt;
  &lt;/label&gt;
  &lt;input type="text" name="name" id="username" /&gt;
  
  &lt;label&gt;Link
  &lt;span class="small"&gt;Paste Your Link&lt;/span&gt;
  &lt;/label&gt;
  &lt;input type="text" name="email" id="link" /&gt;
  
  &lt;label&gt;Notes
  &lt;span class="small"&gt;Add Some Notes&lt;/span&gt;
  &lt;/label&gt;
  &lt;input type="text" name="password" id="notes" /&gt;
  
  &lt;button type="submit"&gt;&lt;/button&gt;
  &lt;div class="spacer"&gt;&lt;/div&gt;
  
  &lt;/form&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Thanks!</p>