Click here to Skip to main content
15,885,914 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How can I show a table row if a sub-task exists?

Database info:
- table1 tasks table
- table2 sub-task table

Some tasks have sub-tasks, so how do I create an if statement for the results table: if tasks table has a record in the sub-tasks table display the record below the task record.
<td> #taskName# <td>
<cfif subtask exists display row>
   <tr>
	  <td>#sub-taskName#</td>
   <tr>
</cfif>


What I have tried:

<cfif taskID = sub-taskid>
<pre> <tr>
	  <td>#sub-taskName#</td>
   <tr>
</cfif>
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900