<?php for ($i = 0; $i < 10; $i++) { //echo 'Klucz = ' . $data[$i][0] . '<br>Wartosc = ' . $data[$i][1] . '<br>';<-o tym mowa } function plot($data)///////////////////////////////////////////////////// { //Include the code include("../phplot.php"); //Define the object $graph = new PHPlot(600,500); $graph->SetDataValues($data); $graph->SetPlotType("bars"); //Draw it $graph->DrawGraph(); }////////////////////////////////////////////////////////////////////////// plot($data); ?>
chodzi o drugą linijke w petli for jak jest za znakami komentarza jest wszystko ok
a to jest wyrzucane:
Klucz = 2000
Wartosc = 16177
Klucz = 2001
Wartosc = 1558
Klucz = 2002
Wartosc = 31639
Klucz = 2003
Wartosc = 20868
Klucz = 2004
Wartosc = 7533
Klucz = 2005
Wartosc = 28066
Klucz = 2006
Wartosc = 14899
Klucz = 2007
Wartosc = 496
Klucz = 2008
Wartosc = 9065
Klucz = 2009
Wartosc = 16878
Warning: Cannot modify header information - headers already sent by (output started at c:\usr\apache\httpd\html\examples\p1.php:6) in c:\usr\apache\httpd\html\phplot.php on line 1090
Warning: Cannot modify header information - headers already sent by (output started at c:\usr\apache\httpd\html\examples\p1.php:6) in c:\usr\apache\httpd\html\phplot.php on line 1091
Warning: Cannot modify header information - headers already sent by (output started at c:\usr\apache\httpd\html\examples\p1.php:6) in c:\usr\apache\httpd\html\phplot.php on line 1092
Warning: Cannot modify header information - headers already sent by (output started at c:\usr\apache\httpd\html\examples\p1.php:6) in c:\usr\apache\httpd\html\phplot.php on line 1093
Warning: Cannot modify header information - headers already sent by (output started at c:\usr\apache\httpd\html\examples\p1.php:6) in c:\usr\apache\httpd\html\phplot.php on line 1099
�PNG
i jakies krzaki...



