Welcome Guest, Not a member yet? Register   Sign In
Userlib - User Library
#31

[eluser]Unknown[/eluser]
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".

Code:
if( $this->userlib->login( $_POST['login'], $_POST['password'] ) )
      {
          echo "1";
      }
      else
      {
          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?


Messages In This Thread
Userlib - User Library - by El Forum - 07-04-2007, 09:43 AM
Userlib - User Library - by El Forum - 07-04-2007, 10:27 AM
Userlib - User Library - by El Forum - 07-04-2007, 12:15 PM
Userlib - User Library - by El Forum - 07-04-2007, 12:21 PM
Userlib - User Library - by El Forum - 07-04-2007, 12:26 PM
Userlib - User Library - by El Forum - 07-04-2007, 12:31 PM
Userlib - User Library - by El Forum - 07-04-2007, 12:44 PM
Userlib - User Library - by El Forum - 07-06-2007, 12:08 AM
Userlib - User Library - by El Forum - 07-06-2007, 02:01 AM
Userlib - User Library - by El Forum - 07-06-2007, 12:00 PM
Userlib - User Library - by El Forum - 07-06-2007, 04:35 PM
Userlib - User Library - by El Forum - 07-08-2007, 07:03 AM
Userlib - User Library - by El Forum - 07-13-2007, 07:41 AM
Userlib - User Library - by El Forum - 07-13-2007, 01:19 PM
Userlib - User Library - by El Forum - 07-16-2007, 04:23 AM
Userlib - User Library - by El Forum - 07-18-2007, 08:04 AM
Userlib - User Library - by El Forum - 07-18-2007, 12:36 PM
Userlib - User Library - by El Forum - 07-19-2007, 10:09 AM
Userlib - User Library - by El Forum - 07-19-2007, 11:00 AM
Userlib - User Library - by El Forum - 07-24-2007, 10:19 AM
Userlib - User Library - by El Forum - 07-24-2007, 10:37 AM
Userlib - User Library - by El Forum - 07-24-2007, 10:46 AM
Userlib - User Library - by El Forum - 07-24-2007, 10:49 AM
Userlib - User Library - by El Forum - 07-25-2007, 01:34 AM
Userlib - User Library - by El Forum - 08-14-2007, 04:17 AM
Userlib - User Library - by El Forum - 01-07-2008, 09:28 AM
Userlib - User Library - by El Forum - 01-13-2008, 08:40 AM
Userlib - User Library - by El Forum - 01-20-2008, 03:41 PM
Userlib - User Library - by El Forum - 02-14-2008, 05:06 PM
Userlib - User Library - by El Forum - 03-15-2008, 06:46 PM
Userlib - User Library - by El Forum - 11-26-2008, 01:12 PM
Userlib - User Library - by El Forum - 12-01-2008, 09:23 AM
Userlib - User Library - by El Forum - 09-07-2009, 03:09 PM
Userlib - User Library - by El Forum - 09-08-2009, 10:13 AM



Theme © iAndrew 2016 - Forum software by © MyBB