update_image.php
if($image_width > $data2['maxwidth'] or $image_height > $data2['maxheight'])
{
echo '<br>'."Image is too big".'<br>';
echo $image_width.'>'.$data2['maxwidth_bn'].'<br>';
echo $image_height.'>'.$data2['maxheight_bn'];
exit();
}
Successfully upload pictures
Image is too big
995>1000
229>240
I wonder why the condition pass? It suppose to be too small instead of too big.