scripter73
Programmer
Hi,
I used to know how to do this before I left CF for about a year.
Hope this is a simple question.
I have a query.
I'm trying to output each data record on one line. (I'll add in formatting to separate data later. I can do that.)
But for now, I just want to print the record results for every record on its own line.
Here's what I have so far:
But this only gets me the first value in every column, and I want to get every value in the column and then separate them with tabs.
Thanks in advance for any help.
scripter73
Change Your Thinking, Change Your Life.
I used to know how to do this before I left CF for about a year.
Hope this is a simple question.
I have a query.
Code:
<cfquery name="get_cust" datasource="customers" maxrows=20>
select
custid,
contactid,
custname_contact,
firstname,
lastname,
type,
workphone,
address,
email,
city,
state,
zip
from customer_contact
</cfquery>
I'm trying to output each data record on one line. (I'll add in formatting to separate data later. I can do that.)
But for now, I just want to print the record results for every record on its own line.
Here's what I have so far:
Code:
<cfoutput query="get_cust">
<cfloop index="i" list="get_cust.columnlist">
#evaluate(get_cust.currentrow)#<br>
</cfloop>
</cfoutput>
Thanks in advance for any help.
scripter73
Change Your Thinking, Change Your Life.