By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,053 Members | 1,192 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,053 IT Pros & Developers. It's quick & easy.

image from DB + new server with magic_quotes_gpc: on

P: n/a
Al
Hi

I mode a site from to a new server where trere is:

PHP Version 4.3.2
and
magic_quotes_gpc On On
magic_quotes_runtime Off Off
magic_quotes_sybase 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,file)
VALUES
('news','$mime',$x,$y,'".addslashes(fread($fd,$use rfile_size))."')

and i get them with

Header("Content-type: $mime");
$img_from_db_out = $query->getField("file");
echo $img_from_db_out;

Thanks
Jul 17 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.