--- a/search_autosuggest.php +++ b/search_autosuggest.php @@ -47,7 +47,7 @@ ); } $query = "SELECT \"CNID\", description, value FROM contractnotice -WHERE to_tsvector('english', description) @@ plaintoto_tsquery('english', :input)"; +WHERE to_tsvector('english', description) @@ plainto_tsquery('english', :input)"; $query = $conn->prepare($query); $agencyName = $input . '%'; $query->bindParam(":input", $input); @@ -84,3 +84,4 @@ echo ""; } ?> +