<?php require_once 'conn.php'; require_once 'functions.php'; require_once 'header.php'; _GET['keywords'])) { _GET['keywords'] . "') AS score " . "FROM forum_posts " . "WHERE MATCH (subject,body) " . "AGAINST ('" . result = mysql_query(conn) or die('Could not perform search; ' . mysql_error()); } echo "<table class=\"forumtable\" width=\"100%\" " . "cellspacing=\"0\">\n"; echo "<tr><th class=\"searchHeader\">Search Results</th></tr>\n"; if (result)) { echo "<tr class=\"row1\"><td>No articles found that match the "; echo "search term(s) '<strong>" . </strong>'"; if (access_lvl > 2) echo "<p>SQL: </p>"; echo "</td></tr>\n"; } else { rowclass = ""; while (result)) { rowclass == "row1"?"row2":"row1"); echo "<tr class=\"<td>\n"; topicid=(row['id']:<p class=\"searchSubject\">\n<a href=\"viewtopic.php?t=" . topicid . "#post" . row['subject'] . "</a>\n"; echo "</p>\n"; echo "<p class=\"searchBody\">\n"; echo htmlspecialchars(trimBody(access_lvl > 2) { echo "<p>SQL: </p>"; echo "<br><br>relevance: " . row['score']; } echo "\n</p>\n"; echo "</td>\n</tr>\n\n"; } } echo "</table>"; require_once 'footer.php'; ?>
(C) Æliens 20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.