Welcome Guest, Not a member yet? Register   Sign In
dbprefix([$table = ''])
#3

Yes, the documentation is quite clear that:

Code:
$this->db->dbprefix('');

is for adding the default prefix to a table name, so a table name is required. http://www.codeigniter.com/user_guide/da...::dbprefix



And rtorralba is quite right, I just did a test to get the prefix with

Code:
$this->db->dbprefix;

And it worked fine.

Best wishes,

Paul
Reply


Messages In This Thread
dbprefix([$table = '']) - by ComputingFroggy - 10-25-2015, 07:59 AM
RE: dbprefix([$table = '']) - by rtorralba - 10-25-2015, 08:15 AM
RE: dbprefix([$table = '']) - by PaulD - 10-25-2015, 08:23 AM



Theme © iAndrew 2016 - Forum software by © MyBB