pneudralics Posted June 8, 2009 Share Posted June 8, 2009 Whenever I submit an image with a width between 350-400 I keep getting my else statement. Is my if correct? I want to allow an image between 350-400 list($width, $height, $type, $attr) = getimagesize($_FILES['wallpaper']['tmp_name']); if ($width <= '350' && $width >= '400') { //good } else { //bad } Link to comment https://forums.phpfreaks.com/topic/161330-solved-getimage-size-if-issue/ Share on other sites More sharing options...
gevans Posted June 8, 2009 Share Posted June 8, 2009 list($width, $height, $type, $attr) = getimagesize($_FILES['wallpaper']['tmp_name']); if ($width >= '350' && $width <= '400') { //good } else { //bad } Link to comment https://forums.phpfreaks.com/topic/161330-solved-getimage-size-if-issue/#findComment-851329 Share on other sites More sharing options...
pneudralics Posted June 8, 2009 Author Share Posted June 8, 2009 Thanks. Been up too long. Can't believe I missed that. Link to comment https://forums.phpfreaks.com/topic/161330-solved-getimage-size-if-issue/#findComment-851334 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.