• 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


Messages In This Thread
insert code "/" - by php7cms - 11-09-2016, 09:01 PM
RE: insert code "/" - by kilishan - 11-09-2016, 09:26 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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