hi, how do i make a graph in php, but, the code has to connect to a server to get the values for the graph. If any of you can help me with the code, i have found many examples but no one that conects to a server (database) and get the values from there and then graphic them.
@Haafiz_DossaJul 17.2006 — #You can develop your own graph generation script using the GDLib functions...or a simpler alternative would be to use the PEAR's Image_Graph:
i have found many examples but no one that conects to a server (database) [/QUOTE] If that's the case, and you want to use those scripts, then you can just connect to the database, fetch the results and store them in an Array, and then use the other examples you found to just use the Array (I assume they take Array inputs).
Could you be specific as to what kind of graph you need (bar, pie, line, etc...)?
@darkcminorauthorJul 17.2006 — #well, hi again, i need a bar graphic, but i would very glad if you could send me the code for conecting and getting the array for an object already defined in the server,
i mean a person introduce some values, i get them then the data stores in a table
(in a server)
and i need to get those values and graph them, and when other person give other values (that store on the server), and then the code has to do the same thing get them and graph them, i dont know if you please send me a code to do this because