PDA

View Full Version : PHP not displaying images.


rex_b
09-22-2004, 09:53 PM
ok if you go here www.religiousforums.com/forum/quiz.php you will see my quiz hack.

the problem is the images don't appear you just see those boxes.

I know it put the image in the db b/c I can see it in there but it won't display it.

I tried contacting the guy who I got the hack from a few times with no help to solve my problem.

Any ideas on how to fix or where to start ?


here is a working version: http://www.movieforums.com/community/quiz.php

Tekton
09-23-2004, 12:13 AM
ok if you go here www.religiousforums.com/forum/quiz.php you will see my quiz hack.

the problem is the images don't appear you just see those boxes.

I know it put the image in the db b/c I can see it in there but it won't display it.

I tried contacting the guy who I got the hack from a few times with no help to solve my problem.

Any ideas on how to fix or where to start ?


here is a working version: http://www.movieforums.com/community/quiz.php
maybe posting the code for the image part...?

rex_b
09-23-2004, 12:36 AM
maybe posting the code for the image part...?


Well I don't think I can do that since I paid for the hack... sorry :(

Tekton
09-23-2004, 03:35 AM
Then there isn't really anything anyone here could do IMO. Maybe you should contact who you bought it from.

Not to mention not being very specific or providing a login....

Modin
09-25-2004, 12:18 PM
since you say the images are in database (I takes this they are stored as a string in the database as oppose to on the filesystem) you must have a script that pulls it out and returns it. Double check that this script is setting the header correctly to what format of image it is.

You should see a line that looks similar to

$im = imagecreatefromstring($data);
header('Content-Type: image/jpeg');
imagejpeg($im);


if that's what you you see, then make sure it's a jpeg you're trying to return

Unless you mean you just have the html stored in the database, then I'd check you html to see if it's linking to the right spot ;)