note 22584 added to faq

From: Date: Mon, 24 Jun 2002 02:08:48 +0000
Subject: note 22584 added to faq
Groups: php.notes 
Request: Send a blank email to php-notes+get-32136@lists.php.net to get a copy of this message
I am come form china.I have a base in mysql table pic (picno,picdesc,pic:bolb); <? MYSQL_CONNECT( "localhost", "root", ""); mysql_select_db( "pic"); $sql="select * from pic where picno=2"; $sql_result=mysql_query($sql); $sql_row=mysql_fetch_array($sql_result); $data=$sql_row[2] ; header("content-type: image/gif"); echo $data; ?> but don't picture output. Only output the symbol of the picture when I delete header("content-type: image/gif"); output: GIF89a€ÿÀÀ!?,D; what is wrong with me? -- http://www.php.net/manual/en/faq.php http://master.php.net/manage/user-notes.php?action=edit+22584 http://master.php.net/manage/user-notes.php?action=delete+22584 http://master.php.net/manage/user-notes.php?action=reject+22584

« previous php.notes (#32136) next »