Hi
I want to display more detail of a record by passing the id to another page which I am doing with this URL.
I'm having some problems with what the code should be to select the detail and display the results, below is what I have so far however this does not work
picture.asp
TIA
Webflex
I want to display more detail of a record by passing the id to another page which I am doing with this URL.
Code:
<A href='picture.asp?action=display&id="&rs("id")&"'>
I'm having some problems with what the code should be to select the detail and display the results, below is what I have so far however this does not work
picture.asp
Code:
<%
option explicit
dim useraction
dim dsn,sql,conn,rs
dim fname,lname,tel,mobile,init,dept,id
id=request("id")
useraction=request("action")
dsn="DBQ=" & Server.Mappath("../db/phone.mdb") & ";Driver={Microsoft Access Driver (*.mdb)};"
set conn=server.createObject("adodb.connection")
conn.open dsn
select case useraction
case "display"
sql = "select * from users where id="&id
set rs = conn.execute(sql)
lname=rs("lname")
fname=rs("fname")
tel=rs("tel")
mobile=rs("mobile")
init=rs("init")
dept=rs("dept")
conn.close
set conn = nothing
end
%>
TIA
Webflex