have this:
$query1 = "select product from inventory where product like '%".addslashes($searchkey)."%'";
With the addslashes / stripslashes i am still getting the same problem:
Warning: mssql_query(): message: Line 1: Incorrect syntax near 't'. (severity 15) in c:\inetpub\bla\search.php on line 199
Warning: mssql_query(): message: Unclosed quotation mark before the character string ''. (severity 15) in c:\inetpub\bla\search.php on line 199
Warning: mssql_query(): Query failed in c:\inetpub\blablabla\search.php on line 199