If I execute my PHP code:
$serName = $_GET['username']; // Code for sanitation here // [...] $sql = "SELECT NAME FROM PLAYERS WHERE NAME LIKE '%$serName%'";
I get a split error, how to use a variable in a query with wildcards on both sides?
source share