Ik krijg steeds een foutmelding bij de SQL update functie.
Ik had het werkend in oude PHP versie, maar moet nu eigenlijk naar versie 7
Al veel geprobeerd, maar zie het niet. Wat doe ik hier fout?

ERROR: Could not able to execute UPDATE db_genealogie SET Doc='' foto='0' WHERE id='3'.
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'foto='0' WHERE id='3'' at line 3


 //connect to database
   $connection = mysqli_connect($db_host, $db_user, $db_pass, $db_name);
   if (!$connection) {   die ('Can not connect to MySQL: ' . mysqli_connect_error());  }

   $Opdracht ="UPDATE db_genealogie SET
   Doc='$NDoc'
   foto='$Nfoto'
  WHERE id='$Gid'";

// Poging om record bij te werken
    if(mysqli_query($connection, $Opdracht)){
    echo "Records were updated successfully.";
    } else {
    echo "ERROR: Could not able to execute $Opdracht. " . mysqli_error($connection);
    }

 mysqli_close($connection);

Moet er geen komma staan op het end van regel 6?
Je hebt gelijk, bedankt.
Daar zit al de hele tijd overheen te turen

Reageren