theevilone
IS-IT--Management
Two questions.
1, I have a routine in my code, which checks if a certain image file exists. If it exists, it should display it, else, display a default image location. (code below). What happens is that, if it does find the image, it displays it, if it cannot, it still shows the same location, but without the image
<cfif "../#category1name#/images/#test#" neq "">
<td width="70%" rowspan="8" align="center"><img border="0" src="../#category1name#/images/#test#"></td>
<cfelse>
<td width="70%" rowspan="8" align="center"><img border="0" src="whitesquare400.jpg"></td>
</cfif>
2, I have product numbers that are n4,n14, n15 . Database query (asc) results show the order as n14,n15,n4 . How can I get the results to sort the results correctly. I hope that makes sense.
Help. Thanks in advance.
1, I have a routine in my code, which checks if a certain image file exists. If it exists, it should display it, else, display a default image location. (code below). What happens is that, if it does find the image, it displays it, if it cannot, it still shows the same location, but without the image
<cfif "../#category1name#/images/#test#" neq "">
<td width="70%" rowspan="8" align="center"><img border="0" src="../#category1name#/images/#test#"></td>
<cfelse>
<td width="70%" rowspan="8" align="center"><img border="0" src="whitesquare400.jpg"></td>
</cfif>
2, I have product numbers that are n4,n14, n15 . Database query (asc) results show the order as n14,n15,n4 . How can I get the results to sort the results correctly. I hope that makes sense.
Help. Thanks in advance.