title: FPDF - PHP inside WriteHTML function?
body: <p>I have inserted some text in the WriteHTML function provided by <a href="http://www.fpdf.org/" rel="nofollow">http://www.fpdf.org/</a> under 'Tutorial 6: Links and flowing text'. </p>
  
  <p>I want to add some php code inside of it but it does not quite function. </p>
  
  <p>I tried the following but it just wrote the code too. </p>
  
  <pre><code>while ($row = mysql_fetch_array($result)) {
  
  $html='Person:&lt;b&gt;".$row["firstname"] ." ". $row["lastname"]."&lt;/b&gt;';
  
  $pdf-&gt;AddPage();    
  $pdf-&gt;SetXY(12, 127); 
  $pdf-&gt;SetFontSize(11);
  $pdf-&gt;WriteHTML(utf8_decode($html));
  } $pdf-&gt;Output();
  </code></pre>
  
  <p>Any ideas? Is there any function in existance that can make this work? </p>