PHP Classes

Small error

Recommend this page to a friend!

      DB Session Advanced Class  >  All threads  >  Small error  >  (Un) Subscribe thread alerts  
Subject:Small error
Summary:Small error
Messages:5
Author:Gary England
Date:2012-07-31 14:05:38
Update:2012-07-31 20:30:18
 

  1. Small error   Reply   Report abuse  
Picture of Gary England Gary England - 2012-07-31 14:05:38
Very nice class Ranielly. When you declared $info as private you broke the example_en.php (Line 65). I changed the variable to public in the class in order to run the example.

  2. Re: Small error   Reply   Report abuse  
Picture of Gary England Gary England - 2012-07-31 14:15:35 - In reply to message 1 from Gary England
I hit submit too soon. I failed to mention the error which was:
"Fatal error: Cannot access private property Session::$info in C:\public_html\gn\exemple_en.php on line 65"

Interestingly line 62 was not a problem.

  3. Re: Small error   Reply   Report abuse  
Picture of Ranielly Ferreira Ranielly Ferreira - 2012-07-31 17:55:55 - In reply to message 2 from Gary England
Sorry. Use the $session->allinfo() to get the session data out instead of just $session->info

  4. Re: Small error   Reply   Report abuse  
Picture of Gary England Gary England - 2012-07-31 19:28:58 - In reply to message 3 from Ranielly Ferreira
You may also want to check either your "create table" or your "insert" statement regarding the user_data field not having a default value.

  5. Re: Small error   Reply   Report abuse  
Picture of Ranielly Ferreira Ranielly Ferreira - 2012-07-31 20:30:18 - In reply to message 4 from Gary England
Value can be NULL.