Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

passing variables

Status
Not open for further replies.

omerdurdu

Programmer
Joined
Jul 21, 2001
Messages
72
Location
TR
I have a question about passing variables. Can someone help me?
Thanks in advance!

Is it possible to pass two variables to the same page at the same time like this or can you give me the correct syntax:
Here is the part of code:

<cfquery datasource=&quot;datacat&quot; name=&quot;data1&quot;>
SELECT DQ_Source.Source_ID, ID.Dataset_ID, CI.Citation_ID, CI.Citation_ID, CI.Originator_Names, CI.Publication_Date, CI.Publication_Time, TP_Date.Year, TP_Date.Hour, TP_Date.Minute, TP_Date.Second
FROM (ID INNER JOIN (CI INNER JOIN DQ_Source ON CI.Citation_ID = DQ_Source.Citation_ID) ON ID.Dataset_ID = DQ_Source.Dataset_ID)
WHERE (((ID.Dataset_ID)=#Dataset_ID#))
</cfquery>

<cfoutput query=&quot;data1&quot;>
----
----
---
</cfoutput>

<!---Here is i am having problem>

<a href=&quot;citaddedit.cfm?Citation_ID=<cfoutput>#data1.Citation_ID# & citaddedit.cfm?Dataset_ID=#Dataset_ID#</cfoutput></a>
 
Thats fine you dont need to repeat the file name and there should be no space between the & I would move the cfoutputs to:
<cfoutput>

<a href=&quot;citaddedit.cfm?Citation_ID=#data1.Citation_ID#&Dataset_ID=#Dataset_ID#</a>

</cfoutput>
for readability.

HTH

Kola
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top