My code isn't working properly, I'm trying to display specific html for a specific productid, and standard html for all other product id's. My code isn't working as it is returning the standard html for every product id including my specific one...which is 117.
Here's the code for the If Then statement:
With this code only the second block of html is showing up, even for the record whos ProductID is 117.
Any ideas?
Here's the code for the If Then statement:
Code:
if rstDisplay("ProductID") = 117 then
%>
<td align="center" valign="top" width="25%"><font size="2" face="Arial"><% Response.Write("<a href=""[URL unfurl="true"]www.myurl.com""><img[/URL] border=""0"" src=""images/lightups/""" & rstDisplay("Number") & "s.jpg""></a><br>" & rstDisplay("Name")) %></font></td>
<%
else
%>
<td align="center" valign="top" width="25%"><font size="2" face="Arial"><% Response.Write("<a href=""products_ny.asp?" & rstDisplay("ProductID") & """>" & "<img border="0" src=images/newyears/" & rstDisplay("Number") & "s.jpg>" & "</a><br>" & rstDisplay("Name")) %></font></td>
<%
end if
%>
With this code only the second block of html is showing up, even for the record whos ProductID is 117.
Any ideas?