Re: IE6 not display jpeg images from mysql databases
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: IE6 not display jpeg images from mysql databases

From: Robert <robert@rob.com.pl>
Date: Mon Sep 12 2005 - 00:02:52 CEST

Hey guys !

I do It !
I do It !
I do It !

It's simple like ... :-)

first make file "sjifie6.php"
like that
<?
$id = $_GET['p'];
include 'conn.php'; # conect from MySQL
$statfoto = mysql_query("select * from foto where id like '".$id."';");
$rowfoto = mysql_fetch_array($statfoto);
$data = base64_encode($rowfoto['fotka']);

$data = base64_decode($data);
$im = imagecreatefromstring($data);
   header('Content-Type: image/jpeg');
   imagepng($im);
?>

and in my "inedex.php"
<html>
<body>
..
..
<?
..
..
echo("<img src=\"sjifie6.php?p=".$rowfoto['id']."\" border=0>")
..
..
?>
..
..
<html>
<body>

but i don know whay "imagepng()"

Robert
ps
sjifie6.php - Show JPEG In F*****g Internet Explorer 6 :-)
Received on Mon Oct 24 02:09:57 2005