I'm sorry, but I'm not getting any of this.
The page looks way better then the 2 pages I got in order to update my database records (which only works halfway still), but I do not see any type of connection or how to make this work. It looks fine and I want it (badly) but I do not know how to....
My code so far: (updaterecordinaanbouw.asp)
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>Update een record</title>
</head>
<body background="Deventer2004.jpg" bgproperties="fixed"
onFocus="window.status='Stavoor'"
onBlur="window.status='Stavoor'" &>
<!-- #include file="connection_modulair.asp" -->
<%
'create and open the recordset object
rsCommon.Open "stavoor", adoCon, 1, 3, 2 %>
<% if not isEmpty(Request.QueryString) then recno = Request.QueryString("recno")
if recno="" then %>
<h5>Selecteer een Record</h5>
<table width=90% cellspacing=1 cellpadding=5 border=1 bordercolorlight="#FFFF00" bordercolordark="#808000" bgcolor="#000000">
<!-- begin column headers -->
<tr>
<th><font color="#FFFF00"><b><span style="text-transform: uppercase">Nummer</span></b></font></th>
<th><font color="#FFFF00"><b><span style="text-transform: uppercase">Artikel</span></b></font></th>
<th><font color="#FFFF00"><b><span style="text-transform: uppercase">Prijs</span></b></font></th></tr>
<% 'cycle through the record set and display each row results
recno = 1
do until rsCommon.EOF %>
<tr>
<td><font color="#FFFF00"><b><span style="text-transform: uppercase"><%= rsCommon("nummer")%></span></b></font></td>
<% if rsCommon("nummer")=1 then %>
<td><font color="#FFFF00"><b><span style="text-transform: uppercase"><%= rsCommon("artikel")%></span></b></font></td>
<% else %>
<td><a href="updaterecordinaanbouw2.asp?recno=<%=recno%>"><font color="#FFFF00"><b><span style="text-transform: uppercase"><%= rsCommon("artikel")%></span></b></font></a></td>
<% end if %>
<td><font color="#FFFF00"><b><span style="text-transform: uppercase"><%= rsCommon("prijs")%></span></b></font></td></tr>
<!-- next Row = next Record -->
<% 'increment record position with MoveNext method
rsCommon.MoveNext
recno = recno+1
loop
'close record set and flush object from memory
rsCommon.Close
set rsCommon = Nothing
%>
</table>
<% if rowCount>8 then %>
<p><a href="#">Naar boven</a></p>
<% else %>
<% end if
else
'move pointer to selected record
recno = Request.Querystring("recno")-1
rsCommon.MoveFirst
rsCommon.Move recno
'close record set and flush object from memory
rsCommon.Close
set rsCommon = Nothing
adoCon.close
set adoCon = Nothing
end if %>
</body>
</html>
2nd page: (updaterecordinaanbouw2.asp)
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>Update een record</title>
</head>
<body background="Deventer2004.jpg" bgproperties="fixed"
onFocus="window.status='Stavoor'"
onBlur="window.status='Stavoor'" &>
<!-- #include file="connection_modulair.asp" -->
<%
'create and open the recordset object
rsCommon.Open "stavoor", adoCon, 1, 3, 2 %>
<% if isEmpty(Request.Form) then %>
<h5>Om veranderingen op te slaan in de database, druk op Update.</h5>
<form method="post" onsubmit="return validateForm(this)">
<table width=85% cellspacing=1 cellpadding=3 border=0>
<col width=40% align="right">
<col width=60%>
<tr>
<td>Artikel:</td>
<td><input maxlength=254 name='msgFrom' value="<%= rsCommon("artikel")%>"></td></tr>
<tr>
<td>Prijs:</td>
<td><input maxlength=254 name='msgSubject' value="<%= rsCommon("prijs")%>"></td></tr>
</table>
<p><input type="submit" value="Update"> <input type="reset" value="annuleren" onclick="self.location.replace('updatearecord.asp')"></p>
</form>
<% else
' store db field names in fldsArray
fldsArray = array ("artikel", "prijs")
' store form field values into valsArray
valsArray = array (Request.Form("msgFrom"),Request.Form("msgSubject"))
' update the Recordset
rsCommon.Update fldsArray, valsArray %>
<h5>Dit record is ge-update.</h5>
<table width=90% cellspacing=1 cellpadding=5 border=1 bordercolorlight="#FFFF00" bordercolordark="#808000" bgcolor="#000000">
<col width=35% align="right">
<% for each field in rsCommon.Fields %>
<tr>
<td><font color="#FFFF00"><b><span style="text-transform: uppercase"><%= field.Name %></span></b></font></td>
<td><font color="#FFFF00"><b><span style="text-transform: uppercase"><%= field.Value %></span></b></font></td></tr>
<% next %>
</table>
<p><a href="#">Naar boven</a> | <a href="updaterecordinaanbouw.asp">Edit
een Record</a></p>
<% end if %>
</body>
</html>
Now I got a problem with the numbers in the first row displaying correctly and pointing to the right record, can someone help me as well?
Thanks in advance.