Re: [PHP] getimagesize not working on images from MYSQL

2005-07-16 Thread Burhan Khalid
timothy johnson wrote: $id = $_GET['id']; $query = "SELECT * FROM myPhotos WHERE photoId='$id'"; $result = mysql_query($query); $row = mysql_fetch_assoc($result); $im = imagecreatefromstring($row[photoData]); $size = getimagesize($im); hea

[PHP] getimagesize not working on images from MYSQL

2005-07-16 Thread timothy johnson
$id = $_GET['id']; $query = "SELECT * FROM myPhotos WHERE photoId='$id'"; $result = mysql_query($query); $row = mysql_fetch_assoc($result); $im = imagecreatefromstring($row[photoData]); $size = getimagesize($im); header('Content-Type: image/