rating bar

A

Anonymous

Guest
Hi,

I have a database application in PHP and one of the fields is rating. What I want is a bar that is sometimes is used in polls that displays percentage-wise the value of rating. So, if I have rating value 100 (100%) then my bar would be full, 50 (50%) bar is half full.

Thanks,
webtekie
 
you can make it with imagecreate() function to draw an image. or with tables (width and height)
 
simple just from the talbe get the percentage info
and
then
Code:
<img src=".." width=<?php echo(The percent value) ?> height="..">
Thats it
 
Back
Top