Skip to content
Advertisement

can i use md5 hashed values inside $this->db->escape() in codeigniter,

when i tried to use md5 hashed values inside $this->db->escape() i’m getting error like below when i tried to fetch count of results “Call to a member function num_rows() on bool”

my code

Advertisement

Answer

You are making double escape as i see it. Remove the single quotes from $this->db->escape().

Or the better way is to set the variables in the $this->db->query($query); This way codeigniter will escape it for you.

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement