Jump to content

Recommended Posts

Posted

Ik heb mdb file die ik door asp laat lezen.

Nu wil ik middels een href link kunnen sorteren op tabel "SOF_STICKER" of "SOF_NAAM". Wie helpt mij mijn bestaande script aan te passen:

 

Code:
<body><%Set Conn = Server.CreateObject("ADODB.Connection")Set RS	= Server.CreateObject("ADODB.RecordSet")Conn.Open    "Mijn_Uitleen"selFrom    = "SELECT * FROM software where SOF_TYPE='DVD' ORDER BY SOF_NAAM"Set RS = Conn.Execute( selFrom )RS.movefirst%><table><%do While Not RS.EOF%>  <tr>    <td><font face="Tahoma"><%=RS("SOF_STICKER")%></font></td>    <td><font face="Tahoma"><%=RS("SOF_NAAM")%></font></td>  </tr><%RS.movenextloopRS.CloseConn.Close%></table></body>

There are 10 kinds of people in the world.

Those who understand binary numbers and those who don't.

Posted

selFrom = "SELECT * FROM software where SOF_TYPE='DVD' ORDER BY SOF_NAAM ASC"

 

of

 

selFrom = "SELECT * FROM software where SOF_TYPE='DVD' ORDER BY SOF_NAAM DESC"

 

of

 

<%

RS.Sort="SOF_NAAM ASC"

%>

 

 

<%

RS.Sort="SOF_NAAM DESC"

%>

 

Posted

Thx voor je snelle response, maar hoe maak ik daar nu een hyperlink van? Ik wil dus deze sortering maken door erop te klikken.

There are 10 kinds of people in the world.

Those who understand binary numbers and those who don't.

Posted

yes, thats the one <img src="/ubbthreads/images/graemlins/laugh.gif" alt="" />

 

Hier kan ik weer mee aan de slag.

Nogmaals... bedankt!

There are 10 kinds of people in the world.

Those who understand binary numbers and those who don't.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...