05-09-2008, 06:34 PM
|
#22 (permalink)
|
|
The Prestige
Join Date: Oct 2007
Location: Manchester, UK
Posts: 854
Thanks: 32
|
put it inside an object member variable, at the moment those variables are local to the method i.e. not able to be accessed by the other methods.
PHP Code:
class whatever { private $EvulSess;
function __construct(){ $this->EvulSess = EvulSession::getInst(); $EvulSys = $this->Connect(); }
function SetGuest(){ $this->EvulSess->set_var("usr_nme", "Guest"); } }
__________________
mysql> SELECT * FROM `users` WHERE `users`.`clue` > 0;
Empty set (0.00 sec)
|
|
|
|