[PHP] array method attributes (OO)

2003-08-14 Thread Ben Edwards
I wish to pass a session variable into an object and have it available as an attribute. I have what I thought I needed below as a code segment but it douse no work. Has anybody got any idea how I should achieve this. Ben .. class Contacts{ var $db; array $SESSION;

Re: [PHP] array method attributes (OO)

2003-08-14 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Fri, 8 Aug 2003 at 14:18, lines prefixed by '' were originally written by you. I wish to pass a session variable into an object and have it available as an attribute. I have what I thought I needed below as a code segment but it douse no

Re: [PHP] array method attributes (OO)

2003-08-14 Thread Ben Edwards
array $SESSION; near the beginning gives the error Parse error: parse error, unexpected T_ARRAY, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in d:\wwwroot\stwerburghs.org\obj\contacts.obj.php on line 6 Fatal error: Cannot instantiate non-existent class: contacts in

Re: [PHP] array method attributes (OO)

2003-08-09 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Fri, 8 Aug 2003 at 15:54, lines prefixed by '' were originally written by you. array $SESSION; near the beginning gives the error Parse error: parse error, unexpected T_ARRAY, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in