Hi
I mode a site from to a new server where trere is:
PHP Version 4.3.2
and
magic_quotes_gp c On On
magic_quotes_ru ntime Off Off
magic_quotes_sy base Off Off
since i moved the site i can't get images from DB correctly
images are stored in a "mediumblob " field
if i use mysql front to view images in DB i see them correctly, but
when i retrive them by php they are messed up
i store images with
INSERT INTO file (tab,mime,x,y,f ile)
VALUES
('news','$mime' ,$x,$y,'".addsl ashes(fread($fd ,$userfile_size ))."')
and i get them with
Header("Content-type: $mime");
$img_from_db_ou t = $query->getField("file ");
echo $img_from_db_ou t;
Thanks
I mode a site from to a new server where trere is:
PHP Version 4.3.2
and
magic_quotes_gp c On On
magic_quotes_ru ntime Off Off
magic_quotes_sy base Off Off
since i moved the site i can't get images from DB correctly
images are stored in a "mediumblob " field
if i use mysql front to view images in DB i see them correctly, but
when i retrive them by php they are messed up
i store images with
INSERT INTO file (tab,mime,x,y,f ile)
VALUES
('news','$mime' ,$x,$y,'".addsl ashes(fread($fd ,$userfile_size ))."')
and i get them with
Header("Content-type: $mime");
$img_from_db_ou t = $query->getField("file ");
echo $img_from_db_ou t;
Thanks