title: Updating a database using MySQL
body: <p>I'm trying to create a newsletter function, when a user inputs their name and email into a form, the PHP issues a query to the database to put their answers in the table. I already checked the names of everything and they all seem to be in check, but for some reason "why please no" keeps showing up. </p>
  
  <p>This is my code, it worked once before but I'm not sure what happened.</p>
  
  <pre><code>&lt;?php
  mysql_connect("localhost", "root", "root") or die("connecting");                             
  mysql_select_db("ejb")or die("database");
  $name = $_POST['name'];
  $email = $_POST['email'];
  $query = "INSERT INTO 'newsletter'('name', 'email') VALUES ('$name', '$email')";
  if(mysql_query($query)) {
      echo "updated";
      }
  else{
      echo "why please no";
      }
  ?&gt;
  </code></pre>
  
  <p>Help would be greatly appreciated!</p>