title: PHP function to return SQL as html throwing error?
body: <p>Is this function correct? it keeps returning:
  Parse error: syntax error, unexpected ';', expecting T_FUNCTION in C:\Program Files (x86)\Apache Group\Apache2\htdocs\test\include\class.mysqltools.php on line 301</p>
  
  <p>301 is the last line...any help is appreciated, thank you!</p>
  
  <pre><code>function DisplayA($query, $rowname1, $rowname2) {
      $result = mysql_query($query);
      $buffer = $buffer .="&lt;table&gt;";
      while($row = mysql_fetch_array($result)){
      $buffer = $buffer .="&lt;tr&gt;&lt;td&gt;" . $row[$rowname1] . "&lt;/td&gt;&lt;td&gt;" . $row[$rowname2] . "&lt;/td&gt;&lt;/tr&gt;";
      }
      $buffer = $buffer .="&lt;/table&gt;";
      return $buffer;
  }
  </code></pre>