Welcome Guest, Not a member yet? Register   Sign In
php 5.3 errors
#11

[eluser]John_Betong[/eluser]
I think you session is loaded but you are not loading your userdat('mess');

Try this:
Code:
$default =  'SESSION NOT LOADED';
  $mess    = isset($this->session->userdata('ip_address')) ? $this->session->userdata('ip_address') : $default;

  echo $mess ;
  die;
 
 
 
#12

[eluser]Phil Sturgeon[/eluser]
You cant use isset on a object method, only variables and properties.
#13

[eluser]John_Betong[/eluser]
[quote author="Phil Sturgeon" date="1266423552"]You cant use isset on a object method, only variables and properties.[/quote]

I tried using isset(...) to see what the error message was and also tried not using isset(...) but loading a non-existent property. The latter did not give an error only an empty variable.

I have learnt something new today - let's hope I don't forget tomorrow Smile
 
 
 
#14

[eluser]Moddi[/eluser]
[quote author="John_Betong" date="1266423070"]I think you session is loaded but you are not loading your userdat('mess');

Try this:
Code:
$default =  'SESSION NOT LOADED';
  $mess    = isset($this->session->userdata('ip_address')) ? $this->session->userdata('ip_address') : $default;

  echo $mess ;
  die;
 
 
 [/quote]

Getting this now:

Fatal error: Can't use method return value in write context in
#15

[eluser]Sbioko[/eluser]
PMed you the solution.




Theme © iAndrew 2016 - Forum software by © MyBB