Re: [PHP] Newbie: why do I get this error?

2001-02-26 Thread Harshdeep S Jawanda
Hi, Steve Edberg wrote: > In your HTMLTable() function, use > > $this->attributes[] = array("border", "0"); > $this->attributes[] = array("cellpadding", "0"); > > otherwise, PHP thinks $attributes is a variable local to that > function, rather that a class variable. Yes, that di

Re: [PHP] Newbie: why do I get this error?

2001-02-26 Thread Steve Edberg
At 3:47 PM +0530 2/26/01, Harshdeep S Jawanda wrote: >Hello everybody, > >I am a newbie, so please help me out with my rather basic question. > >Please take a look at the following code snippet: > > class HTMLTable extends HTMLElement { > var $attributes; > > function HTMLTable() { >

Re: [PHP] Newbie: why do I get this error?

2001-02-26 Thread Yasuo Ohgaki
> > Hi all, > > I changed > > > function HTMLTable() { > > $attributes[] = array("border", "0"); > > $attributes[] = array("cellpadding", "0"); > > // and some other things > > } > > to > > $attributes = array(array("border", "0"), > array(

Re: [PHP] Newbie: why do I get this error?

2001-02-26 Thread Harshdeep S Jawanda
Hi all, I changed > function HTMLTable() { > $attributes[] = array("border", "0"); > $attributes[] = array("cellpadding", "0"); > // and some other things > } to $attributes = array(array("border", "0"), array("cellpadding", "0")); but am

[PHP] Newbie: why do I get this error?

2001-02-26 Thread Harshdeep S Jawanda
Hello everybody, I am a newbie, so please help me out with my rather basic question. Please take a look at the following code snippet: class HTMLTable extends HTMLElement { var $attributes; function HTMLTable() { $attributes[] = array("border", "0"); $attributes[] = arra