I wrote the following code to see if I
can store image data into mysql, but I failed (could not display the image).
Does anyone know how to install the image data in mysql?
<?php
$file=\"/photo/11-1.jpg\";
$data=addslashes(fread(fopen($file,\"r\"),filesize($file)));
header(\"Content-type:image/jpeg\");
echo \"<img src=http://www.phpbuilder.com/board/archive/index.php/\\\"$data\\\">\";
?>
thx,
can store image data into mysql, but I failed (could not display the image).
Does anyone know how to install the image data in mysql?
<?php
$file=\"/photo/11-1.jpg\";
$data=addslashes(fread(fopen($file,\"r\"),filesize($file)));
header(\"Content-type:image/jpeg\");
echo \"<img src=http://www.phpbuilder.com/board/archive/index.php/\\\"$data\\\">\";
?>
thx,