hiding / activating a hyperlink from database query
Hi,
I'm trying to make a link in a database query hidden if there's no data available, yet visible if there is data.
I'm doing a search on a database, some items have images, some don't.
Here's my results page code:
As you can see it pops a new window from the SPC number. What I'm looking for is, if there's no data in field image then the code for the link wouldn't be active.
Any ideas?
Thanks
I'm trying to make a link in a database query hidden if there's no data available, yet visible if there is data.
I'm doing a search on a database, some items have images, some don't.
Here's my results page code:
<td width="5%"><a href="../images/catalog/<%=(Recordset1.Fields.Item("SPC").Value)%>.jpg" onclick="newWindow(this.href, 'popup', 325, 300, 1, 1, 0, 0, 0, 1, 0); return false;" target="_blank">Image</a></td>
As you can see it pops a new window from the SPC number. What I'm looking for is, if there's no data in field image then the code for the link wouldn't be active.
Any ideas?
Thanks
Lonnie Hull
June 19,