note 22584 rejected from faq by philip

From: Date: Sat, 29 Jun 2002 05:00:49 +0000
Subject: note 22584 rejected from faq by philip
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-32395@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?

« previous php.notes (#32395) next »