0
I am placing a restriction of access clause.
I created a table with people who can access, my intention is that those who can access are directed to the page and those who cannot be directed to another
But there’s something wrong
usuario = right(Request.servervariables("LOGON_USER"),7)
set RSUSER = conexao.execute("SELECT usuario FROM tabela ")
if usuario = RSUSER("usuario")
then response.redirect("../index.asp")
else
response.redirect("acesso_restrito.asp")
}
I believe a WHERE clause is missing:
"SELECT usuario FROM tabela WHERE usuario = '"& usuario &"'"
– Sam
I guess that’s not it, as I will not display specific user data. I want to see if the user is listed in the table and if it is listed it can go to a certain page.
– user78432
Without using WHERE vc will select the whole table.
– Sam