il faut aussi chapper la note l'insertion.

merci Eldy de m'avoir montr addslashes au lieu de mysql_... que j'avais fait prcdemment.
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 .= ") ";
$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) {
$sql .= ", $this->projet_id";
}