title: Ajax load .php by click on a href
body: <p>I want a simple  that when I click, it loads the content from a file file.php.
  I also need the Ajax to send a string to file.php</p>
  
  <p>This is my file.php</p>
  
  <pre><code>session_start();
  
  include("../database.php");
  
  if (isset($_GET['id'])) {
  
  $to = $_GET['to'];
  
  mysql_query("UPDATE `flashchat` SET `open` = '1' WHERE `to` = '$to' AND `from` = '$_SESSION[id]'");
  
  }
  </code></pre>
  
  <p>The PHP string</p>
  
  <pre><code>$chatinfo[id];
  </code></pre>
  
  <p>Thanks!</p>