Can you improve this code?
<?php
if ($calculation >= 5)
{
for ($i=1;$i<=5;$i++)
{
echo '<img src="'.$linkSite.'/img/star1_16x16.png"> ';
}
}
elseif ($calculation >=3 && $calculation <5)
{
for ($i=1;$i<=$calculation;$i++)
{
echo '<img src="'.$linkSite.'/img/star1_16x16.png"> ';
}
for ($calculation;$calculation<5;$calculation++)
{
echo '<img src="'.$linkSite.'/img/star_16x16.png"> ';
}
}
elseif ($calculation <=2)
{
for ($i=1;$i<=$calculation;$i++)
{
echo '<img src="'.$linkSite.'/img/star1_16x16.png"> ';
}
for ($calculation;$calculation<5;$calculation++)
{
echo '<img src="'.$linkSite.'/img/star_16x16.png"> ';
}
}
else
{
echo '<img src="'.$linkSite.'/img/star_16x16.png"> ';
}
?>
Plushebugawhenhehaslessthan3points.