PDA

View Full Version : HELP! Creating a Hyperlink taking info from MySQL


cocoonfx
03-26-2007, 12:04 AM
Hello


This has been driving me mad and been trawling the net and books for hours.

I have a mysql database where i have a product name (prodname) on my webserver i have an image with the same product name.

i.e

Prodname = NL01
Image on sever = NL01.jpeg

I then have a layer with an image place holder and if i name the tag for the placer holder NL01 it will autmatically load that picture. (reason for this is so that i can quickly update my pages).

I am a novice with PHP and i have been trying to find some code online to find this but with no luck.

I know i would need an if statement but i don't know how to link the image place holder to the image server.

Does anyone know of any tuturials or suggest the best way to tackle this?

lux
03-27-2007, 07:43 AM
post your code, once i get some breakfast i'll have a look