thanks for all this help...this is much more complicated than i thought...
however...it works...but i get strange results...at the beginning of the looping I get the "This section has no files yet" message...???
the code...more information in it this time...i didn't bother editing some things out...so, it's a little hectic...
<? $query = mysql_query ("SELECT * from files,templates WHERE files.fsecid='$row_sec[secid]' AND files.ftemplid=templates.templid ORDER by files.date DESC") or die ("No working!");
$row = mysql_fetch_array($query);
if(!mysql_num_rows($query)) echo "This section has no files yet";
else { echo ...
?>
but...i think i was asking the wrong question, because i realize that if there are not files in a $section...it will still output that listing but it won't indicate (unless a user tries to open the link) that there are no files...
i guess, this is what i'm trying to figure out actually...any help? π
thanks for the help...vaska