WhiteTiger
Programmer
Ok, I'm not good at ASP at all...never worked with it, anything, but I do learn quick, so help me here...
so far I have this:
<%@ LANGUAGE = VBScript %>
<%
Response.Expires=0
pnum=request("pnum"
Set cn1 = server.CreateObject("adodb.connection"
Set rs1 = server.CreateObject("adodb.recordset"
cn1.Provider = "MSDASQL"
cn1.ConnectionString = "driver={SQL Server};server=faid-s00;userid=forum;pwd= "
cn1.Open
cn1.DefaultDatabase = "advantage"
rs1.Open "SELECT prprincipal, prprojmgr, prclient, prselect1 FROM PR WHERE substring(prProject,2,4)='" & request("pnum" & "'", cn1, 1, 3
if rs1("prprincipal"="00009" then
prin="James B. Black"
else
prin="R. Norman Stoehr"
end if
Whenever I try to put anything after PNUM=request, to rs1.open, it errors out on the page...is there any way to put that database access part within an include file?
so far I have this:
<%@ LANGUAGE = VBScript %>
<%
Response.Expires=0
pnum=request("pnum"
Set cn1 = server.CreateObject("adodb.connection"
Set rs1 = server.CreateObject("adodb.recordset"
cn1.Provider = "MSDASQL"
cn1.ConnectionString = "driver={SQL Server};server=faid-s00;userid=forum;pwd= "
cn1.Open
cn1.DefaultDatabase = "advantage"
rs1.Open "SELECT prprincipal, prprojmgr, prclient, prselect1 FROM PR WHERE substring(prProject,2,4)='" & request("pnum" & "'", cn1, 1, 3
if rs1("prprincipal"="00009" then
prin="James B. Black"
else
prin="R. Norman Stoehr"
end if
Whenever I try to put anything after PNUM=request, to rs1.open, it errors out on the page...is there any way to put that database access part within an include file?