mam taki problem a mianowicie kiedy dodaje rekord do bazy w którym znajduje się sam text jest wszystko dobrze, problem pojawia się kiedy w przesyłanym teście są znaczniki html wtedy rekord się nie dodaje. Korzystam z PDO poniżej mam kod dodawania rekordu.
Kod
$add = $connect->exec('INSERT INTO news (tytul, krotka, dluga, data_od, data_do, status, zdjecie, id_galerii) VALUES(
"'.$this->getTitle().'",
"'.$this->getMsgShort().'",
"'.$this->getMsgLong().'",
"'.$this->getDateFrom().'",
"'.$this->getDateTo().'",
"'.$this->getStatus().'",
"'.$this->getPhotoMsg().'",
"'.$this->getMsgIdGallery().'"
)');
"'.$this->getTitle().'",
"'.$this->getMsgShort().'",
"'.$this->getMsgLong().'",
"'.$this->getDateFrom().'",
"'.$this->getDateTo().'",
"'.$this->getStatus().'",
"'.$this->getPhotoMsg().'",
"'.$this->getMsgIdGallery().'"
)');