R
Robert
Hello,
I'm trying to collect some data from one page, which have to be mixed up
neatly. This is the aim:
I collect the category names from a table in the database (tblCategorie).
The names are put neatly in a column. Then each category needs a list of
groups that have been entered. The groups are in the table 'tblGroepen'.
That is what I have got so far, but I don't know how combine it and make it
work.
Code:
<!-- #include file="inc/db_start.asp" -->
<!-- #include file="inc/Functies.asp" -->
<html>
<head>
<title></title>
<link href="Style/Default.css" type="text/css" rel="stylesheet">
</head>
<%
if Session("Pro_ID") = "" then
%> <html>
<head>
<title>Inloggen</title>
</head>
<body><center>
<font color="#FF0000">Je bent niet ingelogt!</font>
<br><br><br><br>
<%Call ShowLoginForm%>
</center>
</body>
</html>
<%
response.end
end if
%>
<html>
<head>
<title></title>
<link href="Style/Default.css" type="text/css" rel="stylesheet">
</head>
<body topmargin="10" leftmargin="10" rightmargin="10" bottommargin="10">
<table cellspacing="1" cellpadding="0">
<%
set rst = cnn.execute("SELECT * FROM tblCategorie")
do until rst.eof
%>
<tr>
<td bgcolor="#35559F" height="20">
<%=rst("CatNaam")%>
</td>
</tr>
<tr>
<td>
Groepen hier!
</td>
<tr>
<%rst.movenext
loop
rst.close
set rst = nothing
%>
</table>
<table cellspacing="1" cellpadding="0">
<% set rst = cnn.execute("SELECT * FROM tblGroepen")
do until rst.eof%>
<tr>
<td>
<%=rst("GrpNaam")%>
</td>
</tr>
<%rst.movenext
loop
rst.close
set rst = nothing%>
</table>
</body>
</html>
<!-- #include file="inc/db_end.asp" -->
Can anyone help me with this???
Regards
Robert.
I'm trying to collect some data from one page, which have to be mixed up
neatly. This is the aim:
I collect the category names from a table in the database (tblCategorie).
The names are put neatly in a column. Then each category needs a list of
groups that have been entered. The groups are in the table 'tblGroepen'.
That is what I have got so far, but I don't know how combine it and make it
work.
Code:
<!-- #include file="inc/db_start.asp" -->
<!-- #include file="inc/Functies.asp" -->
<html>
<head>
<title></title>
<link href="Style/Default.css" type="text/css" rel="stylesheet">
</head>
<%
if Session("Pro_ID") = "" then
%> <html>
<head>
<title>Inloggen</title>
</head>
<body><center>
<font color="#FF0000">Je bent niet ingelogt!</font>
<br><br><br><br>
<%Call ShowLoginForm%>
</center>
</body>
</html>
<%
response.end
end if
%>
<html>
<head>
<title></title>
<link href="Style/Default.css" type="text/css" rel="stylesheet">
</head>
<body topmargin="10" leftmargin="10" rightmargin="10" bottommargin="10">
<table cellspacing="1" cellpadding="0">
<%
set rst = cnn.execute("SELECT * FROM tblCategorie")
do until rst.eof
%>
<tr>
<td bgcolor="#35559F" height="20">
<%=rst("CatNaam")%>
</td>
</tr>
<tr>
<td>
Groepen hier!
</td>
<tr>
<%rst.movenext
loop
rst.close
set rst = nothing
%>
</table>
<table cellspacing="1" cellpadding="0">
<% set rst = cnn.execute("SELECT * FROM tblGroepen")
do until rst.eof%>
<tr>
<td>
<%=rst("GrpNaam")%>
</td>
</tr>
<%rst.movenext
loop
rst.close
set rst = nothing%>
</table>
</body>
</html>
<!-- #include file="inc/db_end.asp" -->
Can anyone help me with this???
Regards
Robert.