Hello, srinivas.
The better codes to use would be:
<%if cat_image%>
<img src="<%build_image_url%>/default/<%CategoryID%>.gif" alt="<%Name%>" width="insertvalue" height="insertvalue" border="0">
<%endif%>
Using the PRIMARY key in the Category table is better since that will stay the same over time. If you use <%Name%>.gif, then if you edit the CATEGORY Name column, then you will also have to edit the category image file name.
========================================
Buh Bye!
Cheers,
Me
The better codes to use would be:
Quote:
<%if cat_image%>
<img src="<%build_image_url%>/default/<%CategoryID%>.gif" alt="<%Name%>" width="insertvalue" height="insertvalue" border="0">
<%endif%>
Using the PRIMARY key in the Category table is better since that will stay the same over time. If you use <%Name%>.gif, then if you edit the CATEGORY Name column, then you will also have to edit the category image file name.
========================================
Buh Bye!
Cheers,
Me