scouser77 Posted March 30, 2012 Share Posted March 30, 2012 Hi guys, Probably going to be a very basic question but i'm lost, i'm trying to figure out how to display an image if the value returned is equal to or greater than a certain number, more of a hypothetical question at the moment, Thanks in advance Quote Link to comment https://forums.phpfreaks.com/topic/260018-how-to-echo-an-image-if-value-is-equal-to-or-greater-than/ Share on other sites More sharing options...
AyKay47 Posted March 30, 2012 Share Posted March 30, 2012 if($variable >= number) { echo '<img src="/path/to/img" />'; } Quote Link to comment https://forums.phpfreaks.com/topic/260018-how-to-echo-an-image-if-value-is-equal-to-or-greater-than/#findComment-1332755 Share on other sites More sharing options...
scouser77 Posted March 30, 2012 Author Share Posted March 30, 2012 Literally refreshed the page and there was my answer, thankyou very much Quote Link to comment https://forums.phpfreaks.com/topic/260018-how-to-echo-an-image-if-value-is-equal-to-or-greater-than/#findComment-1332759 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.