writing values from database to rtf file
<p>i am fetching some data from MySql database and i want to write it to rtf file,everything is working fine means rtf generation,and the values from database are also correct but when i open up rtf file it shows no data.below is the code snippet i am using.</p>

<pre><code>**$rtf = new Rtf ();

 // Headear of rtf

 $head = &amp;$rtf-&gt;addHeader ();

 $thead = &amp;$head-&gt;addTable ();

 $thead-&gt;addRows (1);

 $thead-&gt;addColumnsList(array (5.5, 9.5));

 $thead-&gt;writeToCell (1, 2, "&lt;b&gt;hello&lt;/b&gt;" $fontHeader, $paraR);**
</code></pre>

<p>This code is working fine,but instead of hello there shuld be a field that is coming from database,like</p>

<pre><code>$stmt="select name from xyz";
$result = mysql_query ( $stmt);

while ($rslt = fetch_array($result))
{
   $rslt['name'] = $rslt['name'];
}
</code></pre>

<p>now if i do like <strong>$thead->writeToCell (1, 2, "".$rslt['name']." $fontHeader, $paraR);</strong> it dont show any result.plz guid me.
Thanks in advance!!</p>
