title: undifined index error php but why
body: <p>So I have been converting a file from mysql to mysqli, so when I open the file in localhost, I get this error:</p>
  
  <p><strong>Notice</strong>: Undefined index: name in <strong>C:\xampp\htdocs\mafiagametest\Safe.php</strong> on line <strong>80</strong></p>
  
  <p>This is line 80:</p>
  
  <pre><code>$sql = "SELECT id FROM crimetimes WHERE name='". mysqli_real_escape_string($con, $_POST['name'])."'";
  </code></pre>
  
  <p>What might be wrong?</p>