germanic42
05-12-2004, 03:53 PM
I am looking for an easy way to add image links to my web site. I'd like to add the image name, file name and type to a database then have PHP output them on the page. BUT I would like the output to be entered in a Javascript to utilize what the Javascript has to offer.
The end result of the Javascript is:
<a href="test.gif" onClick="return enlarge('test.gif',event,'center', 594, 350)"><strong>Test Image</strong></a>
I need the PHP output to go where both test.gif(s) are in the above code and, of course, to be repeated as many times as there are database entries for that type of image.
The end result would be:
<a href="test.gif" onClick="return enlarge('test.gif',event,'center', 594, 350)"><strong>Test Image</strong></a>
<a href="second.gif" onClick="return enlarge('second.gif',event,'center', 594, 350)"><strong>Test Image</strong></a>
<a href="another.gif" onClick="return enlarge('another.gif',event,'center', 594, 350)"><strong>Test Image</strong></a>
etc.
Thanks,
The end result of the Javascript is:
<a href="test.gif" onClick="return enlarge('test.gif',event,'center', 594, 350)"><strong>Test Image</strong></a>
I need the PHP output to go where both test.gif(s) are in the above code and, of course, to be repeated as many times as there are database entries for that type of image.
The end result would be:
<a href="test.gif" onClick="return enlarge('test.gif',event,'center', 594, 350)"><strong>Test Image</strong></a>
<a href="second.gif" onClick="return enlarge('second.gif',event,'center', 594, 350)"><strong>Test Image</strong></a>
<a href="another.gif" onClick="return enlarge('another.gif',event,'center', 594, 350)"><strong>Test Image</strong></a>
etc.
Thanks,