TransBegin(); $arr=$tb->SelectRecord('news','id=\''.$_GET['image'].'\'','e_type, e_picture'); $tb->TransEnd(); header("Content-type: $arr->e_type"); echo $arr->e_picture; exit(0); ?>