• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
insert code "/"

#1
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]
Reply

#2
I've created an issue for this in CodeIgniter 4 repo: https://github.com/bcit-ci/CodeIgniter4/issues/302
Support Development  • Practical CodeIgniter 3  • Vulcan - CLI Tools for CI4
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.