title: Notice: Undefined index: id
body: <p>I have used a prepared statement to define the id index however, it is telling me that it is undefined for some reason, where and what do i change for this to work?</p>
  
  <pre><code>&lt;?php
  
  $db_username='student';
  $db_password='student';
  $db = new PDO ('mysql:host=192.168.56.2;dbname=Assessment', $db_username, $db_password);
  
  $result = $db -&gt;prepare("SELECT * FROM Jobs WHERE jobname='".$_GET['id']."' ");
  $result-&gt;execute();
  </code></pre>