CodeIgniter Forums
postgre schema... - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: postgre schema... (/showthread.php?tid=59708)



postgre schema... - El Forum - 11-07-2013

[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?


postgre schema... - El Forum - 11-07-2013

[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.