title: Notice: Undefined index: ID
body: <pre><code>    $ID = $_GET['ID'];
        $results = $mysqli-&gt;query("SELECT * FROM PresidentialCandidate WHERE ID='$ID'");   
        if( $results-&gt;num_rows &gt; 0 )
        {
        $row = mysqli_fetch_array($results,MYSQLI_ASSOC);
  
         //Instead of just echoing out the ID, you need to build the result/data that you want in the div right here. The success function of the AJAX call will append whatever you echo out here
  echo $row['ID'];
        }
  </code></pre>
  
  <p>No idea what's wrong.  This is a question based on the solutions posted on my original question: <a href="https://stackoverflow.com/questions/34282382/using-a-href-onclick-to-update-div-without-reloading-page">Using a href onclick to update div without reloading page?</a>  How do I define the ID variable?</p>