I have created a live search system, I am looking to convert the query used to a Parameterized to protect from injection.
Im not having much luck with this, as it uses : '%".$_POST["search"]."%' instead of a regular variable where I would normally replace with :search
this is all I'm trying to convert over to parameterised, keeping the same variable names:
$model_search_query = "SELECT * FROM models WHERE model LIKE '%".$_POST["search"]."%'";
$model_search_query_pass = mysqli_query($cameras, $model_search_query);
Thankyou for any help