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