I am trying to make N/A print if there is no date. If there is a date the date will print, but if there is no date then N/A will not print. I am using mysql and the date format is 2003-10-10 07:50:21
Here is the code
<%If dtLastPostDate <> "" Then%>
<font size="<%=frm_dscp_fontsz%>" face="<%=frm_dscp_fontfm%>" color="<%=frm_dscp_fontcl%>"><%=fncFmtDate(dtLastPostDate, "%d %b %Y at %h:%N %P"%><br>
by <a href="javascriptopUp('popup_profile.asp?id=<%=rsAuthor("MemberID"%>','popUp','width=375,height=250,scrollbars=yes')"><%=rsAuthor("lastpostmember"%></a></font>
<%Else%>
<center><font size="<%=frm_dscp_fontsz%>" face="<%=frm_dscp_fontfm%>" color="<%=frm_dscp_fontcl%>">N/A</font></center>
<%End IF%>
Here is the code
<%If dtLastPostDate <> "" Then%>
<font size="<%=frm_dscp_fontsz%>" face="<%=frm_dscp_fontfm%>" color="<%=frm_dscp_fontcl%>"><%=fncFmtDate(dtLastPostDate, "%d %b %Y at %h:%N %P"%><br>
by <a href="javascriptopUp('popup_profile.asp?id=<%=rsAuthor("MemberID"%>','popUp','width=375,height=250,scrollbars=yes')"><%=rsAuthor("lastpostmember"%></a></font>
<%Else%>
<center><font size="<%=frm_dscp_fontsz%>" face="<%=frm_dscp_fontfm%>" color="<%=frm_dscp_fontcl%>">N/A</font></center>
<%End IF%>