WebsiteBaker 2.13.9 is now available!
R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WBhttps://forum.websitebaker.org/index.php/topic,32355.0.html
$string = @$_POST['string'];$query = "SELECT * FROM mod_news_posts WHERE content_long LIKE '%$string%'"; $result = mysql_query($query);$rows=mysql_num_rows($result);if ($rows == 0) { echo" No Results"; } $error = mysql_error(); if (!$result = mysql_query($query)) { print "$error"; }while($data = mysql_fetch_object($result)){$title = $data->title;$link = $data->link;$short= $data->content_short;echo '<p>';echo '<b>'.$title.'</b><br />';echo ''.$short.' ';echo '<a href="'.WB_URL.'/pages/'.$link.PAGE_EXTENSION.'">Read More...</a></p>';}
echo "<br /><center><form method=\"post\" action=\"";echo WB_URL;echo "/pages/news/search-news";echo PAGE_EXTENSION;echo "\">";echo "<input type=\"text\" maxlength=\"64\" name=\"string\" /> ";echo "<input type=\"submit\" value=\"Search News\" />";echo "</form></center><br />";
<form name="search" action="<?php echo WB_URL.'/search/index'.PAGE_EXTENSION; ?>" method="get"> <input type="hidden" name="search_path" value="/news"> <input type="text" name="string" value="search" /><br /> <input type="submit" value="Search" /><br /> <input type="radio" name="match" id="match_all" value="all" checked="checked" /><label for="match_all">All Words</label> <input type="radio" name="match" id="match_any" value="any" /><label for="match_any">Any Words</label> <input type="radio" name="match" id="match_exact" value="exact" /><label for="match_exact">Exact Match</label></form>