Ask a Question related to Coldfusion Database Access, Design and Development.
-
coryd218 #1
Retrieve URL from DB
Does anyone know how to pull a URL from a DB?
Here's my example:
I have a database with training records in it. Inside the DB people fall under
group 1, 2, 3, or 4. Each of these groups has a Master trainer. I want to
create an account for each Master Trainer. Say Master Trainer1, Master Trainer
2, etc. Also in this DB i have a column called URL. For all members it is blank
and they will just view there records. For Master Trainers I want to create an
if statement that says if they login, go to the URL in the DB.
This will be on my validate.cfm
<cfif '#form.username#' = "Master Trainer1">
statement to pull URL from DB
<else>
go to the users records
</cfif>
Please Help!
coryd218 Guest
-
retrieve sql from database
Our organization has alot of SQL, and we prefer to be able to store our application SQL in a DB; we find it easier to maintain that way. What I... -
Retrieve User Name in C#.net
Hi All, I am trying to find how to retrieve the user name using .Net. I know how to retrieve the user login using... -
Cannot retrieve data in utf-8 from php
Hi. I have a IIS server with php3 installed. I have SQL server database and data stored in unicode format (nvarchar fields). In header of my php... -
retrieve *.jpg
How can I enter a upc # and retrieve a *.jpg image based on the upc I enter. I have thousands of images, so I cannot use a query and insert a... -
retrieve value from xml using id field
I solved it myself.. Sorry. Solution was: Dim xpathDoc As XPathDocument Dim xmlNav As XPathNavigator Dim xmlNI As XPathNodeIterator xpathDoc... -
adonis1976 #2
Re: Retrieve URL from DB
<cfif '#form.username#' = "Master Trainer1">
<cfquery name="qGetUrl" datasource="#datasource#">
select url from db_name
where user_name = '#form.username#'
</cfquery>
<cflocation url="#qGetUrl.url#">
<else>
go to the users records
</cfif>
adonis1976 Guest
-



Reply With Quote

