Something very simple:
Create an image that is 1px x 1px. To create a bar graph use:
while($width > 100) // 100 is the maximum width (in pixels) of the bar
{
$width = $width / 2; // Scale the bar by half
}
printf("<img src='px.gif' width='%s' height='10'>", $width);
For multiple bars...
Hi guys,
This problem has been puzzling me for a couple of days now, hopefully you can help.
I have a table called 'msgs' which stores the text of log entries, together with a timestamp of when the message was generated:
CREATE TABLE `msgs` (
`time_num` int(10) unsigned NOT NULL default...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.