dreammaker888
Programmer
I have the following code but $ImageSize returns empty.
What am I doing wrong?
Do I have to declared $ImageSize as array somewhere?
What exactly do each of the array should return 0, 1, 2, etc.? I am looking for the height and the width of the picture.
Thanks.
What am I doing wrong?
Code:
$result = mysql_query($qdf)
or die("<BR>Invalid query: $qdf <BR>" . mysql_error() . "".$result);
$row = mysql_fetch_array($result);
$pic = $row['PicURL'];
$ImageSize = getimagesize($pic);
echo $ImageSize[0];
echo $ImageSize[1];
echo $ImageSize[2];
echo $ImageSize[3];
Do I have to declared $ImageSize as array somewhere?
What exactly do each of the array should return 0, 1, 2, etc.? I am looking for the height and the width of the picture.
Thanks.