for($i =1 ; $i <= $num; $i++)
{
$var .='<img border="0" src="../bb/images/1st_badge.gif" width="14" height="14" alt="First" />';
}
for($i =1 ; $i <= $num2; $i++)
{
$var .='<img border="0" src="../bb/images/2nd_badge.gif" width="14" height="14" alt="Second" />';
}
for($i =1 ; $i <= $num3; $i++)
{
$var .='<img border="0" src="../bb/images/3rd_badge.gif" width="14" height="14" alt="Third" />';
}
for($i =1 ; $i <= $num4; $i++)
{
$var .='<img border="0" src="../bb/images/cm_badgeA.gif" width="14" height="14" alt="fourth" />';
}
for the second one, you just replace print with $var = " ... ";
|