$keyword = mysql_real_escape_String($_POST['keyword']);
$keyword = clean($_POST['keyword']);
if(isset($_POST['keyword'])){$keyword = mysql_real_escape_String($_POST['keyword']);To:if(isset($_POST['keyword'])){$keyword = mysql_real_escape_string($_POST['keyword']); // Remove tags $keyword = preg_replace('/[<?*>]/is', '', $keyword); // Replace HTML entities like $keyword = preg_replace('/\b&[a-z]+;\b/', ' ', $keyword); // Remove URL's $keyword = preg_replace('/\b[a-z0-9]+:\/\/[a-z0-9\.\-]+(\/[a-z0-9\?\.%_\-\+=&\/]+)?/', ' ', $keyword);
but all you would really need to protect you is the following..
In my modified version of the script i was actually planing on recoding the search just haven't gotten that far yet