I'm new and still trying to get my head round mysqli/PDO. But it seems to me that if I go the mysqli route which I would like to on this occasion, and use:
$search = mysqli_real_escape_string($conn, $_GET['InputFormField']);
$search = str_replace("%", "\%", $search);
$search = str_replace("_", "\_", $search);
for anything inputted through the web-form user then I would have sufficient sql-injection protection - is that correct? And secondly, there's nothing that my web visitor interacts with that involves editing the mySQL database - they are just providing the search criteria for the select statement. (Does that make any difference to the way security is approached?)