I'm working on a project right now where we call PHP from within an HTML
page, send it vars using a POST method, and then use that to draw a graph.
We're drawing bar graphs now but one of my coworkers did a line graph.  You
call the PHP as an <img src> tag and have PHP return a .png.  We used the
SAMS Teach Yourself PHP4 in 24 Hours book - it's Hour 14 where you do all
sorts of stuff with images.

It's not easy - you draw each line based on the endpoints and you can fill
rectangles and stuff, but the end result can be pretty impressive.

I'd send you my graph but it's on a development website that's password
protected.  If you're really interested I could save the image and download
it to you.

-Natalie

> -----Original Message-----
> From: Denny Ow [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, December 03, 2001 11:14 AM
> To:   [EMAIL PROTECTED]
> Subject:      [PHP-DB] Use php to plot graph.
> 
> Hi,
> 
> Jus wanna to ask if it is possible to use php to plot graph using data
> retrieve from mysql. If yes, how should i go about?
> 
> Thanks,
> Denny
> 
> 
> -- 
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to