Click here to Skip to main content
16,005,316 members
Home / Discussions / Database
   

Database

 
AnswerRe: length of time a Connection to Database exists? Pin
J. Dunlap1-May-03 20:16
J. Dunlap1-May-03 20:16 
Question"Copy Project" and SQL ??? Pin
gman441-May-03 13:04
gman441-May-03 13:04 
AnswerRe: "Copy Project" and SQL ??? Pin
Member 961-May-03 19:21
Member 961-May-03 19:21 
GeneralRe: "Copy Project" and SQL ??? Pin
J. Dunlap1-May-03 19:26
J. Dunlap1-May-03 19:26 
GeneralRe: "Copy Project" and SQL ??? Pin
gman442-May-03 12:24
gman442-May-03 12:24 
GeneralRe: "Copy Project" and SQL ??? Pin
Member 962-May-03 14:03
Member 962-May-03 14:03 
GeneralRe: "Copy Project" and SQL ??? Pin
J. Dunlap2-May-03 17:09
J. Dunlap2-May-03 17:09 
GeneralQuery Statement Pin
blindzebra1-May-03 8:30
blindzebra1-May-03 8:30 
I want to allow access to a directory by comparing a value in a table with the "HTTP_REFERER" Example: If I want to allow access via a hyperlink from any page on this site, then my entry in the table would be "thecodeproject.com" and my WHERE statement is checking to see if "thecodeproject.com" is contained in the "HTTP_REFERER"

I'm connecting to the database when I use "=" and I enter a value in the table that matches "HTTP_REFERER" exactly.

What is wrong with the sQuery line? I use query analyzer all day long but this is my first attempt to use sql along with ASP.

referer=lcase(request.servervariables("HTTP_REFERER"))
sQuery = "SELECT * FROM pbs WHERE orgin like " & "'" & referer & "'"

Also, what would I need to place on each page that would continue to allow the linked visitor to navigate as long as they are allow permission initially. That is if you type the url in the address bar or link from an unauthorized site, then you would get redirected to a "you can't get here from there" page.

GeneralRe: Query Statement Pin
Member 961-May-03 19:12
Member 961-May-03 19:12 
GeneralRe: Query Statement Pin
Richard Deeming2-May-03 2:50
mveRichard Deeming2-May-03 2:50 
GeneralConnection Pooling Pin
RedZenBird1-May-03 7:42
RedZenBird1-May-03 7:42 
GeneralSql transaction log format Pin
jspano1-May-03 7:07
jspano1-May-03 7:07 
GeneralChecking Query Progress Pin
perlmunger30-Apr-03 4:31
perlmunger30-Apr-03 4:31 
GeneralInstall packages for serversoftware. Pin
Jonas Follesø30-Apr-03 1:35
Jonas Follesø30-Apr-03 1:35 
GeneralRe: Install packages for serversoftware. Pin
Rein Hillmann1-May-03 5:58
Rein Hillmann1-May-03 5:58 
QuestionCan execute() return both recordset and output parameters Pin
TianYang29-Apr-03 22:34
TianYang29-Apr-03 22:34 
AnswerRe: Can execute() return both recordset and output parameters Pin
andyharman30-Apr-03 12:19
professionalandyharman30-Apr-03 12:19 
GeneralCustom view for a datafield Pin
ssnkh29-Apr-03 20:14
ssnkh29-Apr-03 20:14 
GeneralSQLJ with JTree Plz HELP Pin
sharathkv12329-Apr-03 17:02
sharathkv12329-Apr-03 17:02 
GeneralGet parameter that generated by Refresh() Pin
TianYang28-Apr-03 22:21
TianYang28-Apr-03 22:21 
GeneralRead Only Transactions Pin
Patje28-Apr-03 22:08
Patje28-Apr-03 22:08 
GeneralRe: Read Only Transactions Pin
Rein Hillmann1-May-03 19:42
Rein Hillmann1-May-03 19:42 
GeneralRe: Read Only Transactions Pin
Patje4-May-03 20:43
Patje4-May-03 20:43 
GeneralSQL Statement Help... Pin
Jason Weibel28-Apr-03 9:51
Jason Weibel28-Apr-03 9:51 
GeneralRe: SQL Statement Help... Pin
Timur Fanshteyn28-Apr-03 11:07
Timur Fanshteyn28-Apr-03 11:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.