title: html after include_once doesn't exist
body: <p>I'm making a users table and I'm including a part of the table(the users) with a php page that I call with <code>include_once</code>.</p>
  
  <p>after that include my html doesn't exist when I run the page(with localhost). the code isn't hidden, it simply doesn't exist.</p>
  
  <p><strong>this is my table and include function:</strong></p>
  
  <pre><code>&lt;form onsubmit="return confirm('are you sure that you want to delete this user?');" action="includes/delete_user-inc.php" method="post"&gt;
  
                      &lt;div&gt;
                          &lt;h2&gt;All purchesed products:&lt;/h2&gt;
                      &lt;/div&gt;
                                  &lt;div&gt;
                                  &lt;table class="pt"&gt;
                                      &lt;tr&gt; &lt;th class="t"&gt;Id&lt;/th&gt;
                                          &lt;th class="t"&gt;Userame&lt;/th&gt;
                                          &lt;th class="t"&gt;Email&lt;/th&gt;
                                          &lt;th class="t"&gt;delete&lt;/th&gt;
                                      &lt;/tr&gt;
                                      &lt;?php 
                                          include_once 'includes/manage_users-inc.php';
                                          ?&gt;
                                  &lt;/table&gt;                       
                                  &lt;/div&gt;  
                                      &lt;/form&gt;   
  </code></pre>
  
  <p><em>any html after this point doesn't show in the file</em></p>
  
  <p><strong>the php code:</strong></p>
  
  <pre><code>&lt;?php 
  
  require 'dbh-inc.php';
  
  $id = $_SESSION['userId'];
   if(!isset($id))
      {
          header("Location:../login.php");
          exit();
  
      }
  $num=-1;
  
                      $sql = "SELECT idUsers, uidUsers, emailUsers FROM users;";
                      $result = mysqli_query($conn, $sql);
                      if($result-&gt;num_rows &gt; 0){
                      while($row = mysqli_fetch_assoc($result)){
                          $num = $num +1;
  
                        echo  "&lt;tr&gt;&lt;td&gt;".$row['idUsers'].
                            "&lt;/td&gt;&lt;td&gt;". $row['uidUsers'].
                            "&lt;/td&gt;&lt;td&gt;". $row['emailUsers'].
                            "&lt;/td&gt;&lt;td&gt;&lt;input type=\"submit\" name=\"submit[" . $row['idUsers'] . "]\" value=\"delete user\" class=\"button\"&gt;&lt;/td&gt;&lt;/tr&gt;" ;
                      }    
                      } 
  exit();
  ?&gt;
  </code></pre>
  
  <p>what do I need to do to fix the html disappearing?
  thanks!</p>
  
  <p><strong>Update:</strong> <em>I was wrongly mistaken that every php script has to have an exit() function. while including a script, using the exit() function will exit the parent page and only the including page. 
  include injects code into another page, it doesn't "call" another page.</em></p>