Gossamer Forum
Home : Products : DBMan : Installation :

tag in output

Quote Reply
tag in output
When I output my ProductID I am getting two sets of <b></b> tags around the productid. It is not happening on any other fields. Here is the code where I am using it.
print qq&#0124; &#0124;;
if ($rec{'Image'}) {
print qq|
<tr>
<td width="100%" align="center"><a href="http://www.absolutedesire.com/cgi-bin/dbman/db.cgi?db=products1&ProductID=$rec{'ProductID'}"><img border="2" src="http://www.absolutedesire.com/images/products/$rec{'Image'}" width="150" alt="Click on image to add this product to your shopping cart"></a></td>
</tr>
|;
}
---------------------------
And here is the output.
---------------------------
<td width="100%" align="center"><a href="http://www.absolutedesire.com/cgi-bin/dbman/db.cgi?db=products1&ProductID=<B>ADP007</B><B></B>"><img border="2" src="http://www.absolutedesire.com/images/products/pd3201.jpg" width="150" alt="Click on image to add this product to your shopping cart"></a></td>

Anyone have ideas?

Queticon

Quote Reply
Re: tag in output In reply to
Nevermind I found a nifty little thing in the cfg file bold serach results. Changed it to 0 and it works fine now. I should of looked there first.

Thank You
Queticon
Quote Reply
Re: tag in output In reply to
If you still want the text to be bold, but not have the bold anchors in your URL, then use the following codes at the top of your sub html_record routine:

Code:
$rec{'$db_key'} =~ s/<?.B>//g;

Regards,


------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
* Thinking out of the box (codes) is not only fun, but effective.