Frasortere én record
jeg henter og viser en Produkt Familie til det produkt brugeren får vist. se nedenstående link. Hvordan frasorterer jeg det produkt der vises så det ikke også står i produkt familien?http://www.capitolshop.dk/dk_product.asp?IDproduct=53&Brand=Nike&Sex=Man&Name=Super%20Shoes&Category=Shoes
SQL:
SELECT *
FROM product
WHERE ProductName = 'MMColParam'
ORDER BY IDproduct DESC
ASP:
<%
filnavn = (rsProductFamily.Fields.Item("ImageName").Value)
if filnavn="" then
filnavn="noimage.jpg"
end if
%>
<td> <a href="dk_product.asp?IDproduct=<%=(rsProductFamily.Fields.Item("IDproduct").Value)%>&Sex=<%=(rsProductFamily.Fields.Item("Sex").Value)%>&Name=<%=(rsProductFamily.Fields.Item("ProductName").Value)%>&Brand=<%=(rsProductFamily.Fields.Item("Brand").Value)%>&Category=<%=(rsProductFamily.Fields.Item("Category").Value)%>"><img src="/images/product/<%=filnavn%>" width="58" height="44" border="0" style="border:1px solid #000000;"></a>
