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:
parent
71a9bc219a
commit
7ba4da9525
@ -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";
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user