Object Issues

From: Date: Tue, 08 Apr 2003 14:10:43 +0000
Subject: Object Issues
Groups: php.general 
Request: Send a blank email to php-general+get-142867@lists.php.net to get a copy of this message
Hello, i'm currently having problems with assigning object variables, let me show what's happening: class graphic { var $data; function assign($dbhandler) { while($dbhandler->fetch() !=NULL) { $var[] = $dbhandler->data; } $this->data = $var; } } When I call assign() , inside the function, $data variable is full with my stuff, but when I print the object outside the function the variable $data is always empty, doesn't matter what I do, copying variables, try to alocate with array(), anything. Someone have been on this issue before? Piero "It occurred to me by intuition, and music was the driving force behind that intuition. My discovery was the result of musical perception". Albert Einstein

« previous php.general (#142867) next »