• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
postgre schema...

#1
[eluser]tehjarrett[/eluser]
noob here just starting out with codeigniter...
I'm trying to create a simple login script and I get a blank page when my verifylogin controller is run..
I'm thinking that it has something to do with my database. here's the login function from the model:
Code:
$this->db->select('user_id, user_login, user_password');
  $this->db->from('crm.crm_users');
  $this->db->where('user_login', $username);
  $this->db->where('password', $password);
  $this->db->limit(1);

As you can see I'm trying to select from the crm_users table in the crm schema.. I'm guessing that this is not the right way of using schemas. I can't find much info about changing schemas from public by googling.

Anyone have some ideas?

#2
[eluser]tehjarrett[/eluser]
damn it... it worked. It was another typo somewhere else..
So, Never mind the previous post in this topic.. As I said, I'm still a newbie at CI.



Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.