RE: [PHP] Re: jpgraph question ???

From: Date: Thu, 20 Jun 2002 14:42:33 +0000
Subject: RE: [PHP] Re: jpgraph question ???
Groups: php.general 
Request: Send a blank email to php-general+get-103137@lists.php.net to get a copy of this message
That's not jpgraph it's a syntax error. Don't you really mean: $graph->title->Set("Visitors per Day, Month".$month); On your other question, you can't name a variable $1, and you probably really mean the constant 1: $l1datay = array(1,2,3,4,5,6,7,8,9,10, 11,12,13,14,15,16,17,18,19,10, 12,22,33,34,35,36,37,38,39,310, 31); > -----Original Message----- > From: Septic Flesh [mailto:septic_flesh@hotmail.com] > Sent: Thursday, June 20, 2002 10:43 AM > To: php-general@lists.php.net > Subject: [PHP] Re: jpgraph question ??? > > > even if i try to pass a variable to the title of the graph I > get the error: > > Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING > > in the following line: > > $graph->title->Set("Visitors per Day, Month".$month""); > > anyone has any experience in the jpgraph ? > > -- > ~~~~~~~~~~~~~~~~ > > Sapilas@/dev/pinkeye > > ~~~~~~~~~~~~~~~~ > "Septic Flesh" <septic_flesh@hotmail.com> wrote in message > news:20020620141123.97132.qmail@pb1.pair.com... > > well i downloaded the jpgraph library and i am trying to > pass my results > of > > some databases queries in the array that displays the data > in X axis.. > > > > $l1datay = array(1,2,3,4,5,6,7,8,9,10, > > 11,12,13,14,15,16,17,18,19,10, > > 12,22,33,34,35,36,37,38,39,310, > > 31); > > > > > > if i type the numbers in the script works ok.. > > > > When i type > > > > $l1datay = array($1,2,3,4,5,6,7,8,9,10, > > 11,12,13,14,15,16,17,18,19,10, > > 12,22,33,34,35,36,37,38,39,310, > > 31);

« previous php.general (#103137) next »