Hi everyone, you all helped me tremendously in the past, and I was hoping to get a little more help 🙂

Well.. I am making a banner exchange (NOT a banner rotator, this one must be able to load banners on pages without PHP support) and I need help. Here is a little background... All variables and such are loaded from a MySQL database. I have everything that deals with the administration, members, and signing up working. I have a script that pics a random banner and is able to display it on pages without php (by calling the script located on a server with phpsupport which pics a banner then tricks the browser into thinking it is an image with a few header calls).

What I need to know is, how could I load the image and its matching link to a non-php page? Such as... I grab an image url from the database with a script then use it to trick the browser into thinking the script is a picture therefore loading the image on the page. Now I want to load the link that goes with that image... any ideas on how?

In ther words.. how can I include a banner and matching link WITHOUT using require or include... And yeah, I do know mysql pretty well and php pretty well, so you can go technical LOL Thx alot.

I REALLY hope I got that accross, I'm not the greatest explainer 😉 Thx.

Bann

    Hi,

    I think you can call the script with an html <IMG> tag.... like:

    <IMG src="script.php">

    I'm not sure though, but i think it may work as long as the script returns the image.

    The problem is the text link.. i really don't know how you can do it.

    Hope it helps.

    If it works please let me know...

      Hello,
      Yeah, I do have it loading an image that way 😉 You can have it do that by tricking the browser into thinking the script is an image by throwing in a few header calls hehe. Thx for your help anyways.

      Bann

        8 months later

        What is the header that you are using for the image trick? Thanks in advance!

          Write a Reply...