How to correct my index.php error?
<p>This is my code i was trying that if I enter my email and pass
where saved in my database(MySQL) will show that if I entered it correctly it shows that i logged in as that email. So i guess you can help me of where am i wrong on my coding, btw i am new in web programming so, I am greatful if you teach me the easiest to understand and the simpliest way.</p>

<pre><code>&lt;?php
    $servername = "localhost";
    $username = "root";
    $password = "crazyjaguar";
    $db = "getstarted";

    // Create connection
    $conn = mysqli_connect($servername, $username, $password);

    // Check connection
    if (!$conn) {
        die("Connection failed: " . mysqli_connect_error());
    }
    echo "Connected successfully";




    if ($_SERVER["REQUEST_METHOD"] == "POST") {
    //  error_reporting(0);
        if ($_POST['email'] &amp;&amp; $_POST['pwd']) {

            // escape
                $email = mysqli_real_escape_string($conn, $_POST['email']);
                $password = mysqli_real_escape_string($conn, $_POST['pwd']);
                // sql email and pass
                $sql = "SELECT email, password FROM gs_users";

                // query esql &amp; espl
                $result = mysqli_query($conn, $sql);

                // fetch_array
                $row = mysqli_fetch_array($result,MYSQLI_BOTH);

                    if ($row['email'] != $email) {

                        die ("No $email registered yet!");
                    }
                    if ($row['password'] = $password) {

                        die ("Wrong $pmail!");
                    }
                        echo "You're logged in as $email";

                        mysqli_close($conn);
    }   
    }

    ?&gt;


    &lt;body&gt;
    &lt;h1&gt;Log In&lt;/h1&gt;

    &lt;form action='' method='post'&gt;

    &lt;input type='email' name='email' placeholder='Email'&gt;
    &lt;input type='password' name='pwd' placeholder='Password'&gt;&lt;br /&gt;
    &lt;a href='forgot.php'&gt;Forgost Password?&lt;/a&gt;&lt;br /&gt;
    &lt;input type='submit' name='signup' value='Signup Here!'&gt;&lt;br /&gt;
    &lt;input type='submit' name='login' value='LogIn'&gt;
    &lt;/form&gt;
    &lt;/body&gt;
</code></pre>