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 Quote 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? Quote Link to comment https://forums.phpfreaks.com/topic/99229-php-image-resize/#findComment-507702 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.