SQL: Trying to obtain all rows that have a primary key inside a inputted table
The code works if the Recipe string replaces the ? in the string. However, as I want to prevent SQL injection the RecipeString isn't treated as SQL so the ' ' either side of each name in RecipeString isn't identified in the SQL string hence returning no values. Hopefully you understand the issue. If anyone has any ideas on how to fix this it would be greatly appriciated. Thanks
Code:
Example Recipe String is:
Code:
Example Recipe String is: