Thread: New approach
View Single Post
Old 05-09-2008, 06:34 PM   #22 (permalink)
sketchMedia
The Prestige
Advanced Programmer Top Contributor Good Samaritan 
 
sketchMedia's Avatar
 
Join Date: Oct 2007
Location: Manchester, UK
Posts: 854
Thanks: 32
sketchMedia is on a distinguished road
Default

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)
sketchMedia is offline  
Reply With Quote
The Following User Says Thank You to sketchMedia For This Useful Post:
Evulness (05-09-2008)