title: XAMPP/AJAX/PHP Issue with saving
body: <p>I'm very new to programming and have been trying to make a website application to learn some web development, using XAMPP on Windows as the local web server.  I've gotten to the point where I'm trying to incorporate some AJAX by loading some info from the database asynchronously.  But any time I make a change to the PHP file that is being called by myFunction() below and save it, the updates don't show up when I refresh the page.  I have to close and reopen the browser in order for the changes I've made to appear.  The only thing I can think of is that when the browser gets closed the session gets destroyed, but I can't figure out why an update to the PHP file shouldn't show up when I refresh the page.  Any help would be appreciated.  Here is the file that is shown in the browser: </p>
  
  <pre><code>&lt;?php
      include 'core/init.php';
      include 'includes/overall/header.php';
      protect_page();
  ?&gt;
  &lt;body&gt;
      &lt;div id="ticker"&gt;
      &lt;?php
          include 'includes/teams.php';
      ?&gt;
      &lt;/div&gt;
  
      &lt;div id="teaminfo"&gt;&lt;/div&gt;
  
      &lt;h2&gt;Welcome to your homepage, &lt;?php echo $user_data['first_name']; ?&gt;&lt;/h2&gt;
  
      &lt;a href="createleague.php"&gt;Create a League&lt;/a&gt;&lt;br&gt;&lt;br&gt;
  
      &lt;a href="logout.php"&gt;Logout&lt;/a&gt;&lt;br&gt;&lt;br&gt;
  
      &lt;script&gt;
      function myFunction(team_id) 
      {
          if (window.XMLHttpRequest) 
          {
              xmlhttp = new XMLHttpRequest();
          }
          else
          {
              xmlhttp = new ActiveXObject('Microsoft.XMLHTTP');
          }
  
          xmlhttp.onreadystatechange = function()
          {
              if(xmlhttp.readyState == 4 &amp;&amp; xmlhttp.status == 200)
              {
                  document.getElementById("teaminfo").innerHTML = xmlhttp.responseText;
              }
          }
  
          xmlhttp.open('GET', 'teaminfo.php?x=' + team_id, true);
          xmlhttp.send();
      }
      &lt;/script&gt;
  
  &lt;/body&gt;
  
  &lt;/html&gt;
  </code></pre>
  
  <p>and the php page:</p>
  
  <pre><code>&lt;?php
  include 'core/database/connect.php';
  $team_id = $_GET['x'];
  
  $sql = "SELECT name, wins, losses FROM hockey_team WHERE id = '$team_id'";
  
  $result = mysql_query($sql);
  
  while ($row = mysql_fetch_assoc($result))
  {
      echo "&lt;h1 id='team_name'&gt;" . $row['name'] . "&lt;/h1&gt;";
      echo "&lt;p id='wins'&gt;" . $row['wins'] . "&lt;/p&gt;";
      echo "&lt;p id='losses'&gt;" . $row['losses'] . "&lt;/p&gt;";
  }
  mysql_close();
  ?&gt;
  </code></pre>