title: Adding php results to end of URL
body: <p>I'm trying to get the <code>event id</code> from the example below into the <em>header URL</em> at the end of template <code>test.html</code>. Can someone please show me what I'm doing wrong?</p>
  
  <p>Here is my code:</p>
  
  <pre><code>&lt;?php
  header("Location: templatetest.html?.$row['event_id']."); 
  
  mysql_connect("xxxx", "xxxx", "xxxx") or die(mysql_error());
  mysql_select_db("xxxx") or die(mysql_error());
  
  
  $result = mysql_query("SELECT a.* FROM events a INNER JOIN (SELECT id_user, MAX(event_id) as maxID FROM events GROUP BY id_user) b ON a.id_user = b.id_user AND a.event_id = b.maxID WHERE a.id_user = '$test'")
  or die(mysql_error()); 
  
  
  // store the record of the "example" table into $row
  while($row = mysql_fetch_array($result)){
  };    
  ?&gt;  
  </code></pre>
  
  <p>Thank You.</p>