|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
fancy way of outputting a basic SQL query
Hi
If i had a table for translating languages that looked like this: autoinc. | English | Translation -------------------------------- 1 | one | eins -------------------------------- 2 | two | zwei -------------------------------- 3 | three | drei -------------------------------- and i has a coldfusion query that looked like this: <cfquery name = "german"> SELECT Translation FROM GermanTable </cfquery> Would there be a shorthand way that I could output some of the words e.g. <cfoutput> The German word for number one is #german.1st row# </cfoutput> or #german.rownumber38# Or would this require good old javascript? |
|
#2
|
|||
|
|||
|
<cfoutput>
The German word for number one is #german.translation[1]# </cfoutput>
__________________
Ask if you have a question, but also help answer questions that you have knowledge of! Thanks, Brian. How to Post a Question in the Forums |
|
#3
|
|||
|
|||
|
perfect.
thanks! |
|
#4
|
||||
|
||||
|
Also, a nice shorthand way to output the whole table is <cfdump var="#german#">
<!--- Corrected my Error, forgot to encapsulate german with #'s ---> Last edited by tac : July 21st, 2005 at 03:35 PM. |
|
#5
|
|||
|
|||
|
Actually just to eliminate a bit of confusion, it's
<cfdump var="#german#"> ![]() |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ColdFusion Development > fancy way of outputting a basic SQL query |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|