I need to create a menu from a db but I have repeating results e.g.
Slazenger
Slazenger
Gray Nicholls
when searching in a dataabse Slazenger appears twice as there are two instances in the search. I want to only display it once. Is there anyway to do a Select so it only appears once instead of how selecting it each time it appears within the database search.
Here is the code below i'd be greatful if someone could help, thanks very much.
John
Slazenger
Slazenger
Gray Nicholls
when searching in a dataabse Slazenger appears twice as there are two instances in the search. I want to only display it once. Is there anyway to do a Select so it only appears once instead of how selecting it each time it appears within the database search.
Here is the code below i'd be greatful if someone could help, thanks very much.
John
Code:
<%
Cat = TRIM( Request.QueryString( "Cat" ))
%>
<%
Dim con, location
Set con = Server.CreateObject("ADODB.Connection")
location = Server.MapPath("db/shop.mdb")
con.Open "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & location
Set RS = Server.CreateObject ( "ADODB.Recordset" )
RS.ActiveConnection = Con
RS.Open "Select * From tblproduct where cat='"&cat&"' "
'Loop Through Recordset
WHILE NOT RS.EOF
%>
<table width="200" border="1">
<tr>
<td>
<td>
<td><a href="shop.asp?Manufacturer=<%Response.Write RS( "Manufacturer" )%>&Cat=bats">
<%Response.Write RS( "Manufacturer" )%></a></td>
</tr>
</table>
<%
RS.MoveNext
WEND
%>


