I want to have this image:
on my page, as like a bar-graph. If the field total = 13, I want 13 of these.
How can I do that?
<? $goals = 13; //in this case, this is how I would do it: $multiplier = 12; $width = $goals * $multiplier; print "<IMG SRC=\"http://www.arsenal.com/images/statistics/goals_scored.gif\" HEIGHT=\"15\" WIDTH=\"" . $imgWidth . "\"><BR>"; //this is what you are asking for: for ($x = 0; $x < $goals; $x++) { $output .= "<IMG SRC=\"http://www.arsenal.com/images/statistics/goals_scored.gif\" HEIGHT=\"15\" WIDTH=\"12\">"; } print $output . "<BR>"; ?>