$vida=$row['vida'];$width = 100 - 5*(22-$vida);echo '<img src="vida_si.png" width="'.$width.'%" height="12" />';