I have an odd one or am i just doing something ridiculous.Seems simple enought when there are no records that person has posted from the past week i want it to say nothing to report (its for a "whatsnew" section). So i've done this and it won't have it. created_by is the unique id of us administrators..
<cfquery datasource="#Application.DB#" name="newpknews">
Select * from news_items
WHERE news_items.created_date > curdate() - INTERVAL 7 DAY
AND created_by = 6
ORDER BY news_items.created_date
</cfquery>
<td class ="newsheader">News from the past week...</td>
<tr><td> </td></tr>
<cfoutput query="newpknews">
<cfif Evaluate(#newpknews.RecordCount#) EQ 0>
Nothing to report
/********This bit here just won't work....******//
<cfelse>
</td></tr>
<tr><td class="newssubject"><a href="news_article.cfm?ID=#news_id#" class="newssubject">#news_subject#</a></td>
</tr>
<tr><td class="newsarticle">#news_data#</td>
</tr>
<cfif news_uselongdata>
<tr><td align="right" class="newsnotes">Click <a href="news_article.cfm?ID=#news_id#">here </a>for details</td></tr>
</cfif>
<tr><td> </td></tr>
</cfif>
</cfoutput>
<cfquery datasource="#Application.DB#" name="newpknews">
Select * from news_items
WHERE news_items.created_date > curdate() - INTERVAL 7 DAY
AND created_by = 6
ORDER BY news_items.created_date
</cfquery>
<td class ="newsheader">News from the past week...</td>
<tr><td> </td></tr>
<cfoutput query="newpknews">
<cfif Evaluate(#newpknews.RecordCount#) EQ 0>
Nothing to report
/********This bit here just won't work....******//
<cfelse>
</td></tr>
<tr><td class="newssubject"><a href="news_article.cfm?ID=#news_id#" class="newssubject">#news_subject#</a></td>
</tr>
<tr><td class="newsarticle">#news_data#</td>
</tr>
<cfif news_uselongdata>
<tr><td align="right" class="newsnotes">Click <a href="news_article.cfm?ID=#news_id#">here </a>for details</td></tr>
</cfif>
<tr><td> </td></tr>
</cfif>
</cfoutput>