Hello!

I draw a graph through pChart. The data for the chart should turn out as results of sql queries to the database. Abscissa users, ordinate performance. Only when trying to attach files together.

include "pChart/pChart.class"; include "pChart/pData.class"; include "connection.php"; // здесь подключение к базе 

everything collapses and the image is not displayed, but "krakozyabry". Why? How can I fix it, tell me, please ...

    2 answers 2

    Most likely, you did not specify a header('Content-Type: image/png'); or header('Content-Type: image/jpeg');

      Check if you have GD library support.