0) { $imgrow = mysql_fetch_array($img_res); header("Content-type: {$imgrow['mimetype']}"); echo $imgrow['image']; } // end if rows returned ?>