Jump to content

[SOLVED] getimage size if issue..


pneudralics

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.