• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Userlib - User Library

How about column 'user_data' in the 'ci_sessions' table?

The next error occurs when I type right login and password. In other case I see "0".

if( $this->userlib->login( $_POST['login'], $_POST['password'] ) )
          echo "1";
          echo "0";    

A Database Error Occurred
Error Number: 1054

Unknown column 'user_data' in 'field list'

UPDATE `ci_sessions` SET `last_activity` = '1227724828', `user_data` = 'a:2:{s:8:\"username\";s:8:\"user1310\";s:8:\"password\";s:40:\"84e3ac481dd7e5360cad7225a232fffb2c94d64a\";}' WHERE `session_id` = '790c74a9c6a13cdea3a7c8d7e1327750'

When I add column 'user_data' in the 'ci_sessions' table everything is OK.
Why the author didn't write about this or may be I do something wrong?

I added one... it worked just fine... it looks like there is work in progresss. :-)

Hi, excuse my n00b-ish-ness!!

I'm struggling to get started with this... where does the class file go in the CI directory structure? And then how do I access the functions in the class from my controller?

Thank you!


Found the answers myself:


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

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