il faut aussi échapper la note à l'insertion.

merci Eldy de m'avoir montré addslashes au lieu de mysql_... que j'avais fait précédemment.
This commit is contained in:
tipaul 2005-11-23 21:02:16 +00:00
parent 71a9bc219a
commit 7ba4da9525

View File

@ -88,7 +88,7 @@ class Fichinter
$sql .= ",fk_projet"; $sql .= ",fk_projet";
} }
$sql .= ") "; $sql .= ") ";
$sql .= " VALUES ($this->socidp, $this->date, now(), '$this->ref', $this->author, '$this->note', $this->duree"; $sql .= " VALUES ($this->socidp, $this->date, now(), '$this->ref', $this->author, '".addslashes($this->note)."', $this->duree";
if ($this->projet_id) { if ($this->projet_id) {
$sql .= ", $this->projet_id"; $sql .= ", $this->projet_id";
} }