there is a variable $rating, rating is a number between 1 and 10
I made a program that will check if rating is more than zero, if so, will echo the same image over and over until the rating number is achieved;
but, i cant echo it in the program, it must be a variable to use outside, this variable is $score
if (isset($rating)){
if ($rating == 0) $score="No Vote";
if (($rating > 0) AND ($rating < 11)){
for ($i=0; $i<$rating; $i++){
if (!isset($score) $score="<img src=image>";
else $score = "<img src=image> ".score;
}
}
unset($score);
}
else $score = "No Vote";
but the program either only echo's each user once, (each user has his/her own rating) or it echoes the image indefinately! why?