This IS NOT a question but a REMARK I should think very useful.
The following piece of code
$sql="UPDATE Adherents
SET Prenom='$_POST[tfPrenom]',
Civilite='$_POST[mdCivil]',
.....
WHERE No_Adherent=$LeNumero";
[followed by the usual mysqli_query() call]
would constantly fail and was extremely difficult to debug: under 'die' condition
if (!$resultat) { die ('Unable to update: error code is ' . mysqli_connect_errno() . ' described as '. >mysqli_connect_error()); }
it would return 'Unable to update: error code is 0 described as', i.e. NO ERROR CODE, NO ERROR MESSAGE.
As a matter of fact, my mistake laid in a wrongly-spelled row name (one cannot notice it here, of course — a missing trailing letter).
CONCLUSION: mysqli_query() can generate an error without appropriate error code/message.
I hope this can help some.