Jump to content

PHP / Jquery Help

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
2 replies to this topic

#1
tridiantgames

tridiantgames

    Newbie

  • Members
  • Pip
  • 2 posts
Hello =)

I am making a website for a client currently and ran across an issue. I am currently using a mysql database to store images for easy access to image management and item management from one single database.

Everything was working great until I tried to implement JQuery. I am using a free code (FancyBox) to make the images pop up and give a caption. Unfortunately, when the image loads, it's not the image. Instead it's that 10,000 character code an image gets if you were to view it in a text document.

EXAMPLE:
1. Image is uploaded to 'database'.
2. Image is shown at /image.php?id=3
3. When jquery fetches that for the preview section, it demolishes the image.
4. The direct image /image.php?id=3 will present you with a png/jpeg/gif image and not a php file.

I have a feeling that .php has something to do with it... Any ideas?

Thank you in advance,
Matthew

#2
Orjan

Orjan

    Writes binary right handed and hex left handed

  • Moderators
  • 3,299 posts
can you see the image if you direct your web browser directly to /image.php?id=3 ? if so, I'd bet your jquery is the guilty part.
__________________________________________
I study Information Systems at Karlstad University when I'm not on CodeCall

#3
tridiantgames

tridiantgames

    Newbie

  • Members
  • Pip
  • 2 posts
Yes it works fine. But when jquery calls the image back - it kills it. :-P