update_image2.php
$result2 = mysql_query("SELECT * FROM image_upload");
$data2 = mysql_fetch_array($result2);
if($image_width > $data2['maxwidth'] || $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
227>240
I wonder why the message says the image is too big?