PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Tuesday, March 1, 2022

[FIXED] Cannot access protected property CI_DB_mysqli_driver::$_protect_identifiers

 March 01, 2022     codeigniter     No comments   

Issue

I am getting Cannot access protected property CI_DB_mysqli_driver::$_protect_identifiers Code as follows

function xyz($use_protech_identifier = false)
{
 $this->db->_protect_identifiers=$use_protech_identifier;
}

Solution

Check this. May be this will work because of latest CI Version. Remove the _ from protect_identifiers.

$this->db->protect_identifiers=$use_protech_identifier;

Also refer the same answer I gave in https://stackoverflow.com/a/50738006/3449206



Answered By - Jimil Choksi
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing