Re: what's a "T_VARIABLE" ?

From: Date: Sat, 09 Dec 2000 08:41:18 +0000
Subject: Re: what's a "T_VARIABLE" ?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-29432@lists.php.net to get a copy of this message
Chris Lee writes: > I get a parse error on line > > var peopleID; > > Parse error: parse error, expecting `T_VARIABLE' in > /home/httpd/vhosts/cooldragons/include/community_class.egn on > line 6 > > <? > include_once("database.egn"); > > class community > { > var peopleID; > var dragon_name; > var descrip; > var image; > var title; > var color_font; > var color_bg; > ... > ?> > > Whats this all about? Ive had this error before, and I cant seem to > classify why I get it, sometimes this sometimes that. > > Chris Lee > Mediawaveonline.com You need '$' signs in front of the variable names. -- +----------------------------------------------------------------+ |Torben Wilson <torben@php.net> Netmill iTech| |http://www.coastnet.com/~torben http://www.netmill.fi| |Ph: 1 250 383-9735 torben@netmill.fi| +----------------------------------------------------------------+

« previous php.general (#29432) next »