Hi
I'm trying to write a very simple search engine to search my DB, but I'm having some troubles with the wild cards.
currently It will select the word placed into the engine, but will not recognize with plurals. current code is as follows:
<?
$db_name = "";
$table_name = "post";
$connection = @mysql_connect("localhost", "", "") or die("couldn't connect");
$db = mysql_select_db($db_name, $connection) or die ("coudnt select database");
$sql = "SELECT title FROM post WHERE description like '%$search%'";
$qry = mysql_query($sql);
echo mysql_error();
$row = mysql_fetch_array($qry);
?>
Results (title)
<?=$row["title"]?>