snowboardr
Programmer
I am calling a recored using the users username, how do write out "User not found" if the user doesn't exsist in the db?
- Thanks
- Thanks
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
ConnString = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & Server.MapPath("db.mdb")
set my_conn= Server.CreateObject("ADODB.Connection")
set rs = Server.CreateObject("ADODB.RecordSet")
my_conn.Open ConnString
StrSQL = "SELECT * FROM users WHERE username=" & "'" & Request.QueryString("username") & "'"
rs = my_conn.Execute (StrSQL)
'# ------------------------
Microsoft VBScript runtime error '800a01b6'
Object doesn't support this property or method: 'EOF'
/profile.asp, line 105
'# ------------------------
<% if not rs.EOF then
Response.write "Found" '( just testing )
else
Response.write "Nothing found"
End if
%>
StrSQL = "SELECT * FROM users WHERE username=" & '" & Request.QueryString("username") & "'