CodeIgniter Forums
insert code "/" - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forum-28.html)
+--- Forum: CodeIgniter 4 Discussion (https://forum.codeigniter.com/forum-31.html)
+--- Thread: insert code "/" (/thread-66592.html)



insert code "/" - php7cms - 11-09-2016

CI4
Code:
$code = "my code \'CodeIgniter\Autoloader\'";
       $this->db->table('test')->insert([
           'text' => $code
       ]);
error:
databse: my code 'CodeIgniterAutoloader'



CI3
PHP Code:
$code "my code \'CodeIgniter\Autoloader\'";
 
       $this->db->insert('test', [
 
           'text' => $code
        
]); 

[font=Arial, 宋体,][font=arial, 宋体]That's right.[/font][/font]


RE: insert code "/" - kilishan - 11-09-2016

I've created an issue for this in CodeIgniter 4 repo: https://github.com/bcit-ci/CodeIgniter4/issues/302