Christophe Chauvet a écrit :
> Bonjour
>
> Oui c'est normal puisqu'il faut échapper certain caractères
>
> vous pouvez utilisez la fonction pg_escape_string
> http://fr3.php.net/manual/fr/function.pg-escape-string.php
J'ai "oublié" de l'utiliser, merci, ça marche.
Avant d'entrée une donnée dans la base j'utilise:
htmlspecialchars( pg_escape_string($nom, ENT_COMPAT, "UTF-8"))
trim($nom)
pg_escape_string($nom)
et un test selon les cas
if (strlen($nom)==0)
Cordialement
--
Pascal