PDO::errorInfo(): Array ( [0] => 42000 [1] => 1064 [2] => You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'YA YA YA YA" SÜRPRİZİ... HANDE YENER "YA YA YA YA" ŞARKISI İLE YAZIN SÜRPR' at line 1 )
public function yturlsave($baslik,$sure,$resim,$aciklama,$kid,$videoid){
$this->db->query("SET NAMES 'utf8'");
$sonuc = $this->db->exec('INSERT INTO videos (kid, title, thumb, duration, description, youtube,status,date) VALUES ('.$kid.', "'.$baslik.'", "'.$resim.'", "'.$sure.'", "'.$aciklama.'", "'.$videoid.'",0,NOW())');
if($sonuc)
return true;
else
echo "\nPDO::errorInfo():\n";
print_r($this->db->errorInfo());
}