title: SQL Delete statement not working
body: <pre><code>include_once 'dbfunction.php';
  getDbConnect();
  
  mysqli_query("DELETE FROM crewlist WHERE id = $_GET[crew_id]") or die (mysqli_error());
  echo 'Delete success';
  header ('Location: crewlisting.php');
  </code></pre>
  
  <p>This code doesn't work, however when I replace the crew_id with the actual primary key via hard coding the delete function works</p>