0) { // display all of the subheadings first $query = "select section_title, section_id from section where parent_id = $sid AND section_subheading = 1 ORDER BY section_title"; $secres = mysql_query($query) or mysql_die ($query); $query = "select section_title, section_sidebar,section_headertext from section where section_id = $sid;"; $thissecres = mysql_query ($query) or die ("Couldn't $query: " . mysql_error()); list ($sectitle, $secsidebar, $section_headertext) = mysql_fetch_array($thissecres); $sectitle = stripslashes($sectitle); } else { $sectitle = "Search results for $searchterm"; } printHeader($sectitle); if (strlen($secsidebar) > 10) { print ''; print $secsidebar; print "\n"; print "\n"; } ?>


1) { print $section_headertext; print "

\n"; } ?> \n"; } // endwhile displayLinks($sid); } // endifelse strlen ($searchterm) ?>
" . stripslashes($title) . "
" . stripslashes($desc) . "