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 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" />'; } 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 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
Archived
This topic is now archived and is closed to further replies.