![]() |
Graphing with PHP using GD - error !
hey guys,
I'm having problem when I'm excuting this code PHP Code:
Code:
PNG IHDRPLTE r`LIDAT(бAMhF!a+(W&;xZi'J*DR+0w`fSc CYeGE*T,(Pe|&H;?&ֳ54I%ב[!i)1kg$;P Eo,{z:`̔,fS87ȐEE,N@4&gG2'D?<_FIENDB`do you have any clue ? |
Re: Graphing with PHP using GD - error !
You are sending a image/png mime header but sending a PNG image data!
Change the header to Code: PHP
|
Re: Graphing with PHP using GD - error !
I've changed the header..
same problem.. :( |
Re: Graphing with PHP using GD - error !
Code: PHP
|
Re: Graphing with PHP using GD - error !
hmmm
I've tried your code.. It doesn't work ! but no worries, cuz the problem is already solved now :) I just had to saparate the code.. image.php PHP Code:
<html> <head></head> <body> <img src="image.php"/> </body> </html> |
Re: Graphing with PHP using GD - error !
okay ! .. now how can have a graph ! with x-axis and y-axis taken from one table in MySQL query !
for example: FruitsTable fruitName numberAvailable Apple 2 Orange 8 Banana 5 I want the x-axis to be my fruitName and the y-axis to be the numberAvailable of the fruit Query = "SELECT fruitName, numberAvailable FROM FruitsTable" then ? |
Re: Graphing with PHP using GD - error !
any help ! ..
just give a simple example where I have a graph that has x-axis and y-axis taken form a mySQL query from only one table between two columns one column --> count(column1) second column --> actual value of itself |
Re: Graphing with PHP using GD - error !
Check this out http://www.go4expert.com/showthread.php?t=344
|
| All times are GMT +5.5. The time now is 21:07. |