Re: sytax error, but where?
- From: Oli Filth <catch@xxxxxxxxxxxxxx>
- Date: Sat, 29 Oct 2005 21:59:03 GMT
carlton said the following on 29/10/2005 22:54:
41 class C_Category{
42 // var $name = array(); changed to var $catname="";
43 var $catname = ""; 44 $PictureList[] = new C_PictureList();
45 }
the above code (line numbers added) gives the error message:-
Parse error: parse error, unexpected T_VARIABLE, expecting
T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /var/www/html/lc.php on
line 44
The class C_PictureList is defined prior to line 41
You need "var $PictureList[]...", or if PHP 5, then public, protected or private.
-- Oli .
- Follow-Ups:
- Re: sytax error, but where?
- From: carlton
- Re: sytax error, but where?
- References:
- sytax error, but where?
- From: carlton
- sytax error, but where?
- Prev by Date: sytax error, but where?
- Next by Date: Re: Need expert assistance with this (MySQL routine)
- Previous by thread: sytax error, but where?
- Next by thread: Re: sytax error, but where?
- Index(es):