ID: 9666
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: *Graphics related
Assigned To: 
Comments:

Works for me just fine. What is the url to that page of 
yours? 

--Jani


Previous Comments:
---------------------------------------------------------------------------

[2001-03-10 03:19:26] [EMAIL PROTECTED]
I am using php 4.03pl1 version on linux now.I found that bug:i use mysql's BLOB mode 
to record a gif or jpg binary data stream,when i read them out and display them in one 
same page,gif or jpg will not display on page at the first time i load the page.Must 
refresh the page,the two type can be displayed.
I don't know if this is a bug or not,so,thanx a lot.
Attach,my program:

<?
    require("config.inc");
    $db = mysql_connect($db_server,$db_user,$db_pass) or die('Can't connect db 
server');
    mysql_select_db($db_name) or die('Can't connect to read database');
 
    $sql = "select data,filetype from images where name='$name'";
    $res = mysql_query($sql,$db);

    $data = mysql_result($res,0,"data");
    $type = mysql_result($res,0,"filetype");

    Header( "Content-type: $type");
    echo $data;
mysql_close();
?>

---------------------------------------------------------------------------



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9666&edit=2


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to