Hi, I'm trying to improve my search so that it searches all words that i write in the search box and matches keywords
my code right now is
<?php
$sub = $_GET['article'];
echo "<h2>search results for: $sub</h2><br><br>";
$sub = str_replace(" ", "%", $sub);
$alb = mysql_connect("localhost", "", "") or die(mysql_error());
mysql_select_db("articles") or die(mysql_error());
mysql_set_charset('utf8', $alb);
$query2 = "SELECT * FROM `blog` WHERE `title` like '%$sub%'";
$result2 = mysql_query($query2) or die(mysql_error());
while ($postede2 = mysql_fetch_assoc($result2))
{
$title = "{$postede2['title']}";
$author = "{$postede2['author']}";
$section = "{$postede2['section']}";
$description = "{$postede2['description']}";
$url = "{$postede2['url']}";
echo "<a href='$url'><h3><b>$title</b></h3></a><br>";
echo "By $author, Category: $section<br>";
echo "$description ...<br><br>";
}
?>
How do i break down the search even further?