I am trying to use prepared statement to prevent sql injections. Code:
$stmt = $conn->prepare("SELECT * FROM ? WHERE ign=? AND password=?");
$stmt->bind_param("sss", $table_name, $ign, $password);
$stmt->execute();
$result = $stmt->get_result();
$data = $result->fetch_assoc();
How do I fix this error? I have read a lot of stuff but all of them does not fix this one.