我的程序有什么问题?我似乎无法使用“找不到单词”?:/
echo "<form action='#' method='post'>";
echo "Search word here: <input type='text' name='search'>";
echo "<input type='submit' name='searchword' value='Search'>";
echo "</form>";
if(isset($_POST['searchword'])){
$word = $_POST['search'];
$result = mysql_query("SELECT * FROM positivethesaurus where word like '%$word%'");
while($row = mysql_fetch_array($result)){
echo $row['word']."<br>";
}
if($row = mysql_fetch_array(!$result)){
echo "word not found";
}
}