thank you for your replys so far guys(edit: and girls)!
this is the code:
<TD><?php echo $redcount; ?>
<IMG HEIGHT=" <?php echo ($redcount * 0.8); ?> " SRC="img/Bar_rot.png" WIDTH="30" BORDER="0">
</TD>
and this is the (wrong) output:
<TD>100
<IMG HEIGHT=" 0 " SRC="img/Bar_rot.png" WIDTH="30" BORDER="0">
</TD>
funny: this happens within a function, if i do the same operation in the main program, it works propperly