title: Login system in PHP wont work correctly
body: <p>for some reason my login script in php keeps returning invalid results, I'm using PHPMYADMIN to handle the database and mysqli to connect however whenever I submit the data though a HTML form the values always return false even if the correct username and password combo is working.</p>
  
  <pre><code>&lt;?php
  $username = $_POST["username"];
  $password = $_POST["password"];
  $con = mysql_connect("localhost","cnathanielwcol","","login");
  if(! $con){die('Connection Failed'.mysql_error());}
  
  $result = mysqli_query("SELECT * FROM login");
  $row = mysql_fetch_array($result);
  var_dump($row);
  
  
  if ($row["username"]==$username) {
    echo "Correct Username&lt;br&gt;";
  } else {
    echo "Wrong Username&lt;br&gt;";
  }
  
  
  if ($row["password"]==$password) {
    echo "Correct Password&lt;br&gt;";
  } else {
    echo "Wrong Password&lt;br&gt;";
  }
  
  echo "&lt;br&gt;&lt;br&gt;Username Submited Via HTML: &lt;b&gt;" . $username . "&lt;/b&gt;";
  echo "&lt;br&gt;Password Submited Via HTML: &lt;b&gt;" . $password . "&lt;/b&gt;";
  ?&gt;
  </code></pre>