max_w1 Posted April 2, 2008 Share Posted April 2, 2008 hi friends... i am designing a game site, and i want a bar showing players strenght... so i taught of using an image which's lenght is equal to the life... but i dont know how to do it... i tried using php variables in html but didnt work. here is what i tried... <img src="images/low.GIF" height="<?php echo $lifebar;?>"> please help Link to comment https://forums.phpfreaks.com/topic/99229-php-image-resize/ Share on other sites More sharing options...
Daniel0 Posted April 2, 2008 Share Posted April 2, 2008 Providing the image exists and $lifebar is set then it should work. How didn't it work? Link to comment https://forums.phpfreaks.com/topic/99229-php-image-resize/#findComment-507702 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.