title: Update MySQL entries via PHP/Html & sql
body: <p>Im trying to create a form where based on someones first and surname, their email can be changed. </p>
  
  <p>So the html looks like this:</p>
  
  <pre><code>&lt;form action="sUpdateResponse.php" method="post"&gt;
  &lt;input type="text" placeholder="Enter Email..." name="sUpdateEmail"&gt;
  Where the name is 
  &lt;input type="text" placeholder="Enter Forename..." name="sUpdateFN"&gt;
  &lt;input type="text" placeholder="Enter Surname..." name="sUpdateSN"&gt;
      &lt;input type="submit" value="Update Records" name="sRetrieveUpdate"&gt;&lt;/form&gt;  
  </code></pre>
  
  <p>This takes a new email to update the data entry where the forename and surname exist.</p>
  
  <p>The php on sUpdateResponse looks like this,</p>
  
  <pre><code>if($_POST['sRetrieveUpdate']) 
      $queryRetrieve = mysql_query( "UPDATE staffData SET sEmail='".$_POST['sUpdateEmail']."' WHERE sFN='".$_POST['sUpdateFN']."' 
      AND sFN='".$_POST['sUpdateSN']."'" );
  </code></pre>
  
  <p>This doesn't return an error but doesn't seem to alter the email either...</p>
  
  <p>Where am i going wrong?</p>