Many times I find myself wanting a quick and dirty bar chart using only 
HTML. You can do this simply by creating a one pixel image in any color 
you like. That way the download is only 1 pixel.
Then calculate the width or height depending on if you want vertical or 
horizontal bars by placing the variable in the height or width and 
display the one pixel image as such:

echo "<img SRC='images/blue.gif' WIDTH=$percent HEIGHT='18' 

You can stack different colors. But you only get bar graphs.


James Hatridge wrote:
> Hi all..
> I'm using SuSE 8.0, mysql, and PHP4. Is it possible to make charts with a 
> database? If so, how about a hint on it?
> Thanks

PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to