Guest_imported
New member
- Jan 1, 1970
- 0
Hi, i do not know what is the error is. My project is about when a user login in, his data is able to display onto the web. Example: Good Morning!, UserName
And when i do the coding, it give me this error:
ADODB.Recordset error '800a0bb9'
Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.
/hello.asp, line 24
And my coding is :
<%
Dim h, name
Dim DataConn, ConnString
Dim Rs, mySQL
mySQL= "select NameID from info "
set Rs=server.CreateObject("ADODB.Recordset"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
Rs.Open mySQL, DataConn
h = hour(now())
response.write "<html><head><body bgcolor='#000000' text='#ffff00'><center>"
Response.Write "<font face='verdana' size='+2'><p>"
response.write("<p>" & now())
response.write(" (Singapore Time) </p>"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
If h < 12 then
Response.Write ("<p>"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
response.write("Good Morning!" & Rs("NameID"
)
response.write("<p>You have logged in!</p>"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
Response.Write ("</p><p>"
elseif h <18 then
Response.Write ("<p>"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
response.write("Good Afternoon!," & Rs("NameID"
)
response.write("<p>You have logged in!</p>"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
Response.Write ("</p><p>"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
else
Response.Write ("<p>"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
response.write("Good Night!," & Rs.Fields ("NameID"
)
response.write("<p>You have logged in!</p>"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
Response.Write ("</p><p>"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
Rs.Close
DataConn.Close
Set Rs = Nothing
set DataConn= nothing
End if%>
May i know how to extract the information from the DataBase and display on the 2nd ASP pages.
thanks...:-D
And when i do the coding, it give me this error:
ADODB.Recordset error '800a0bb9'
Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.
/hello.asp, line 24
And my coding is :
<%
Dim h, name
Dim DataConn, ConnString
Dim Rs, mySQL
mySQL= "select NameID from info "
set Rs=server.CreateObject("ADODB.Recordset"
Rs.Open mySQL, DataConn
h = hour(now())
response.write "<html><head><body bgcolor='#000000' text='#ffff00'><center>"
Response.Write "<font face='verdana' size='+2'><p>"
response.write("<p>" & now())
response.write(" (Singapore Time) </p>"
If h < 12 then
Response.Write ("<p>"
response.write("Good Morning!" & Rs("NameID"
response.write("<p>You have logged in!</p>"
Response.Write ("</p><p>"
elseif h <18 then
Response.Write ("<p>"
response.write("Good Afternoon!," & Rs("NameID"
response.write("<p>You have logged in!</p>"
Response.Write ("</p><p>"
else
Response.Write ("<p>"
response.write("Good Night!," & Rs.Fields ("NameID"
response.write("<p>You have logged in!</p>"
Response.Write ("</p><p>"
Rs.Close
DataConn.Close
Set Rs = Nothing
set DataConn= nothing
End if%>
May i know how to extract the information from the DataBase and display on the 2nd ASP pages.
thanks...:-D