title: MySQL UPDATE doesn't change anything
body: <p>I'm trying to update a database entry but it won't change anything. I'm getting no errors which confuses me...</p>
  
  <p>Code:</p>
  
  <pre><code>if(isset($_GET['edit']))
  {
      $idn = $_GET['id'];
      $namn = $_POST['namn'];
      $adress = $_POST['adress'];
      $postnummer = $_POST['postnummer'];
      $postort = $_POST['postort'];
      $email = $_POST['email'];
      $status = 0;
      echo $namn;
      $sql="UPDATE ordrar SET namn = '$namn' AND adress = '$adress' AND postnummer = '$postnummer'
      AND postort = '$postort' AND email = '$email' AND status = '$status' WHERE id = '$idn'";
      if (!mysql_query($sql))
      {
          die('Error: ' . mysql_error());
      }
      //$referer = $_SERVER['HTTP_REFERER'];
      //header('Location:'. $referer);
  }
  </code></pre>
  
  <p>Thanks for answers
  /Victor</p>