title: Query no longer working
body: <p>I have a bit of code that no longer works, it worked fine before was pushed to the new php I believe 7. This is the part of the code:</p>
  
  <pre><code>if($_POST[submit3]=="Spend WP" &amp;&amp; ($_POST[name]&lt;&gt;NULL) &amp;&amp; $_POST[action]    &lt;&gt;NULL){
        $query3 = "SELECT * FROM game_data  WHERE (log_name='$_POST[name]')";
        $result3 = mysqli_query($query3) or die ("Couldn't get character data.&lt;br&gt;".mysqli_error()."&lt;br&gt;");
        $data = mysqli_fetch_array($connection, $result3);
  </code></pre>
  
  <p>I can verify that that all three if conditions are met, and can get verification that it has valid answer for <code>$_POST[name]</code> from the form, but it always errors out that it couldn't get the character data.</p>