graph's for voting

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
psychotomus
Forum Contributor
Posts: 487
Joined: Fri Jul 11, 2003 1:59 am

graph's for voting

Post by psychotomus »

how can one make a graph for voting? to show results

like

|||||||||| 6/100
||||||||||||||||||12/100
|||||||||||||||||||||||||||||| ect./100
User avatar
ambivalent
Forum Contributor
Posts: 173
Joined: Thu Apr 14, 2005 8:58 pm
Location: Toronto, ON

Post by ambivalent »

Code: Select all

echo "<img src = 'single_pixel_color.gif' alt = 'whatever' height = '5' width = '$percentage_of_total'>";
psychotomus
Forum Contributor
Posts: 487
Joined: Fri Jul 11, 2003 1:59 am

Post by psychotomus »

wow. thats simple. i woulda did some hard way =)
Post Reply