Link to home
Start Free TrialLog in
Avatar of ES-Components
ES-ComponentsFlag for United States of America

asked on

Hyperlink Recordset Image In PHP. Is there a way to do this?

Is there a way to hyperlink a recordset with an image using php?
I have attached two codes, the second one uses asp code and it works fine.

I have to now use mysql server that uses php. Can I accomplish this using php similar to what I did using ASP?

The first code is php with the field 'datasheet' actually being a hyperlink in my database table.
The field Type in the MYSQL database is 'Char'.
(Example: http://www.escomponents.com)
Thank you...
Rick

<td><?php echo $row_ESCAlternatives['DataSheet']; ?></td>


<a href="<%=(Recordset1.Fields.Item("DataSheet").Value)%>" target="_blank" class="style7"><span class="style6 style1 Forms"><img src = "/images/photoshop/tiny-pdf-page.gif" width="16" height="16" border="0"></span></a>

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Pieter Jordaan
Pieter Jordaan
Flag of South Africa image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ES-Components

ASKER

Thank you very, very, much!!!!
I am certainly not a PHP expert at all. Took me a few minutes to get your code to work. (Cut/Paste
doesn't always leave the quotes, dahses, etc where they are supposed to be.)

It works perfect!

Thank you for your quick response.
Rick