• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

nested loops,table

Participant ,
Dec 08, 2006 Dec 08, 2006

Copy link to clipboard

Copied

Hi. I am having diffulty creating the a table with nested loops. The table came out weird. I need one column contains the Facility name, then the second column has facility times which has rowspan=2 ..on the rowspan there should be peoples names...Any help..thank you.



<cfquery name="getfacname" datasource="#FormVector#">
select facname
from genbid_assignmentinfo
group by facname
order by facname
</cfquery>


<table width="800" border="1">
<cfoutput query="getfacname">
<tr>
<td width="69" rowspan="2">#facname#</td>

<cfquery name="getfacname0" datasource="#FormVector#">
select facname,facsch
from genbid_assignmentinfo where facname='#facname#'

order by facname
</cfquery>
<cfloop query="getfacname0">
<td width="712" >#facsch#</td>

<cfquery name="getfac" datasource="#FormVector#">
select *
from genbid_bidresult
where facsch='#trim(facsch)#' and facname='#trim(facname)#' and factype='SGT'
order by facname
</cfquery>




<tr> <cfloop query="getfac">
<td width="715">#firstname# #lastname#</td></cfloop>
</tr>
</cfloop>
</tr>
</cfoutput>
</table>
TOPICS
Advanced techniques

Views

288

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 08, 2006 Dec 08, 2006

Copy link to clipboard

Copied

You could perhaps do with a table within a table, something along these lines

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Dec 11, 2006 Dec 11, 2006

Copy link to clipboard

Copied

Thank you dear

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 12, 2006 Dec 12, 2006

Copy link to clipboard

Copied

LATEST
!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation