Posted by Robert on 11/14/72 11:26
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 :-)
Navigation:
[Reply to this message]
|