I got the empty pdf page during using dompdf2 with php to convert data from database it to pdf file
<p>Suppose that I have the PHP code as below:</p>

<pre><code>&lt;table id="truefix2" cellpadding="0px" cellspacing="0px" border="0" width="620px" class="table table-hover" style="margin-bottom:0px; border-collapse: separate;"&gt;
                                 &lt;thead&gt;
                                    &lt;tr valign="top"&gt;

                                        &lt;th style="text-align:left;" height="20px" width="90px" &gt;Nom&lt;/th&gt;
                                        &lt;th style="text-align:left;" width="120px"&gt;Pr&amp;eacute;nom&lt;/th&gt;
                                        &lt;th style="text-align:left;" width="90px"&gt;Salaire brut&lt;/th&gt;
                                        &lt;th style="text-align:left;" width="150px"&gt;Tx horaire moyen&lt;/th&gt;
                                        &lt;th style="text-align:left;" width="60px" &gt;RTT&amp;nbsp;&lt;/th&gt;
                                        &lt;th style="text-align:left;" width="80px"&gt;Cong&amp;eacute;s&lt;/th&gt;
                                        &lt;th&gt;
                                        &lt;/th&gt;
                                    &lt;/tr&gt;
                                 &lt;/thead&gt;
                                 &lt;tbody class="projetshow&lt;?php echo $vPage;?&gt;" style="position:relative;"&gt;
                                 &lt;tr&gt;
                                    &lt;td&gt;1&lt;/td&gt;
                                    &lt;td&gt;1&lt;/td&gt;
                                    &lt;td&gt;1&lt;/td&gt;
                                    &lt;td&gt;1&lt;/td&gt;
                                    &lt;td&gt;1&lt;/td&gt;
                                    &lt;td&gt;1&lt;/td&gt;
                                 &lt;/tr&gt;
                                    &lt;?php                                                   

                                                $datapro="select * from tbl_salarie ORDER BY id_salarie DESC ";                                                 
                                                $datapro2=mysql_query($datapro);                                                    
                                                $j=0;
                                                while($row=mysql_fetch_array($datapro2)){
                                                $j++;
                                                    $id="salarie".$j; //rows['Branch ID'];
                                                    $fApi="setsalarie";
                                                    $vParam="Old_id_salarie~updateFieldName~updateFieldValue";


                                    ?&gt;
                                    &lt;tr height="25px" valign="middle" class="edit_tr" id="&lt;?php echo $id;?&gt;"&gt;

                                                    &lt;td&gt;

                                                        &lt;?php echo $row[1];?&gt;

                                                    &lt;/td&gt;
                                                    &lt;td class="edit_td"&gt;
                                                        &lt;div style="position:relative;"&gt;

                                                       &lt;?php echo $row['prenom'];?&gt;
                                                        &lt;/div&gt;
                                                    &lt;/td&gt;
                                                    &lt;td class="edit_td"&gt;
                                                        &lt;div style="position:relative;"&gt;

                                                        &lt;?php echo $row['salaire_brut'];?&gt;
                                                        &lt;/div&gt;
                                                    &lt;/td&gt;
                                                    &lt;td class="edit_td"&gt;
                                                        &lt;div style="position:relative;"&gt;

                                                        &lt;?php echo $row['salaire_brut'];?&gt;
                                                        &lt;/div&gt;
                                                    &lt;/td&gt;
                                                    &lt;td class="edit_td"&gt;
                                                        &lt;div style="position:relative;"&gt;

                                                       &lt;?php echo $row['rtt'];?&gt;
                                                        &lt;/div&gt;

                                                    &lt;/td&gt;
                                                    &lt;td class="edit_td"&gt;
                                                        &lt;div style="position:relative;"&gt;

                                                      &lt;?php echo $row['conges'];?&gt;
                                                        &lt;/div&gt;

                                                    &lt;/td&gt;

                                                    &lt;td class="edit_td"&gt;



                                                    &lt;/td&gt;
                                                    &lt;/tr&gt;



                                    &lt;?php }?&gt;

                                   &lt;/tbody&gt;


                                &lt;/table&gt;
</code></pre>

<p>I'm using this code to convert  it to pdf file that all data I select it from database but during I convert, it not shows data from database in the block <code>while loop</code>.How do I fix this? anyone help me please,thanks.</p>
