%@ Language=VBScript %>
<%
dim con,rs,no,str
no=LCASE(Request.Form("regno"))
set con=server.CreateObject("ADODB.Connection")
set rs=server.CreateObject("ADODB.RecordSet")
con.Open "Provider=MSDAORA.0;Data Source=college; User Id=scott;password=tiger"
str = "select * from studentdata where idno='" & no & "'"
rs.Open str,con,3,3
if rs.EOF = true and rs.BOF=true then
Response.Write("Invalid Reg No")
else %>
Id no
| <%=rs.Fields(0) %>
|
Name
| <%=rs.Fields(1) %>
|
E-Mail Id
| <%=rs.Fields(2) %>
|
Date of Birth
| <%=rs.Fields(3) %>
|
Blood Group
| <%=rs.Fields(0) %>
|
<% end if
rs.Close
con.Close
set rs=nothing
set con=nothing
%>
i need the meaning of these statments
set con=server.CreateObject("ADODB.Connection")
set rs=server.CreateObject("ADODB.RecordSet")
con.Open "Provider=MSDAORA.0;Data Source=college; User Id=scott;password=tiger"
str = "select * from studentdata where idno='" & no & "'"
rs.Open str,con,3,3
if rs.EOF = true and rs.BOF=true then
Response.Write("Invalid Reg No")
2007-06-03
17:11:24
·
3 answers
·
asked by
@nu 2
2
in
Computers & Internet
➔ Programming & Design