Welcome Guest, Not a member yet? Register   Sign In
dbprefix does not do what I want it to do.
#1

[eluser]John_Betong[/eluser]
 
I decided to try and use Active Record throughout a new project and the following error occurred:
Code:
// database.php configuration
      $db['default']['database'] = 'johnsjokes';
      $db['default']['dbprefix'] = 'XXXXX_';


   // my_model.php ActiveRecord call
      $total = $this->db->count_all('articles');


      A Database Error Occurred
      Error Number: 1146
      Table 'johnsjokes.XXXXX_articles' doesn't exist
      SELECT COUNT(*) AS `numrows` FROM `XXXXX_articles`
 
I would have thought that the XXXXX_ should be prefixing the database name and not the table.
 
Is this a bug?
 
 
 


Messages In This Thread
dbprefix does not do what I want it to do. - by El Forum - 08-28-2009, 12:40 AM
dbprefix does not do what I want it to do. - by El Forum - 08-28-2009, 12:43 AM
dbprefix does not do what I want it to do. - by El Forum - 08-28-2009, 12:53 AM



Theme © iAndrew 2016 - Forum software by © MyBB