(sorry if this has been posted a thousand times..i am having problems
posting)
hi all,
how does one access and manipulate session variables from within a class?
i have hunted the net high and low but received no relief.
i have tried (where error is a session variable)
class test
{
var
hi ,
gallerie.php:
---
session_start();
class ABCD {
function add_pic($picture,$galerie) {
code here
}
}
$artego = new ABCD;
$artego-add_pic(Santiego,Humstein); -- line XX
. more code
: hi ,
:
: gallerie.php:
:
: Fatal error: Call to a member function on a non-object in
: /home/sites/site76/web/galerie/shop.php on line XX
If I'm following you right and the class code you are trying to run is in
gallerie.php, then your error is in shop.php.
Joel
--
PHP General Mailing
3 matches
Mail list logo