MarkR wrote:If you're using MySQL, one possibility is to use full-text indexing on your data. Read the MySQL manual for more details. It allows you to do a search by keywords instead of a = or "like", and is efficient because it builds (and automatically maintains) an index containing the keywords which it uses during searches.
Mark
Thanks.
My question is then:
I have:
<form>
<input size="50" maxlength="150" type="text" name="search_text">
<input type="Submit" name="submit" value="Search News Archives">
</form>
How do I get it to redirect to search.php?search_text=Test
Where I have this query:
SELECT newsID, news_headline, news_story MATCH (news_headline,news_story) AGAINST ('" . $_GET['search_text'] . "') FROM news;
My question is how do I get the code to work so that when the individual clicks the Search News Archives button it'll redirect them to the search page with the search_text info correctly placed?