What potential issue is the user facing with the SQL command in the PHP script?

The user is facing a potential SQL injection vulnerability in the PHP script. To solve this issue, the user should use prepared statements or parameterized queries to sanitize user input and prevent SQL injection attacks.

// Potential SQL injection vulnerability
$username = $_POST['username'];
$password = $_POST['password'];

$sql = "SELECT * FROM users WHERE username='$username' AND password='$password'";
$result = mysqli_query($conn, $sql);

// Fix using prepared statements
$stmt = $conn->prepare("SELECT * FROM users WHERE username=? AND password=?");
$stmt->bind_param("ss", $username, $password);
$stmt->execute();
$result = $stmt->get_result();