私はここにこのコードを持っています:
 $conn = db_connect();
    $username = $_POST['username'];
    $result = $conn->query("select * from where username='".$username"'");
    if (!$result) throw new Exception ("Could not excecute query");
    }
私が問題を抱えているエラー メッセージは、これらの行の 1 つに未定義の変数があるというものです。$result = $conn->query("select * from where username='".$username"'");すべてが定義されているように見えますが、これは行に対してのみ言っているだけです。このエラーを修正する方法を知っている人がいたら教えてください!