In the query below within my PHP the variable $ line [0] is not validating as a string, however if I give a var_dump ($ line [0]); before arriving at this query, it shows that it is a string!
$result = $conn->query("SELECT player, ip from gru WHERE ip =".$line[0]);
Is there any way to convert this variable to string? I've tried converting before the query using the conventional method, but it does not work!