Welcome Guest, Not a member yet? Register   Sign In
protect_identifiers() doesn't seem to be working
#2

Please next time you post add the version of CodeIgniter that you are using.

For version 3.1.5 you are calling it wrong.

This function will also add a table prefix to your table, assuming you have a prefix specified in your database config file. To enable the prefixing set TRUE (boolean) via the second parameter:

PHP Code:
$this->db->protect_identifiers('table_name'TRUE); 

So if you do not need the database table prefix, just pass it the table name.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Messages In This Thread
RE: protect_identifiers() doesn't seem to be working - by InsiteFX - 07-11-2017, 03:31 AM



Theme © iAndrew 2016 - Forum software by © MyBB