title: How I print bill from php?
body: <p>How I can print bill from web application ?.
  the web design by HTML,PHP,and MYSQL .</p>
  
  <p>in below , the PHP code print the result in web page , I want to print the result as hard copy .
  so what I do ?</p>
  
  <pre><code>while($row = mysql_fetch_array($result)){ 
                  echo "&lt;table border='2' style='width:100%'&gt; ";
                  echo "&lt;br&gt;";
                  echo "&lt;br&gt;";
                  echo $row['finame']; 
                  echo "&lt;br&gt;";
                  echo "&lt;br&gt;";
                  echo $row['scname']; 
                  echo "&lt;br&gt;";
                  echo "&lt;br&gt;";
                  echo $row['file_id']; 
                  echo "&lt;br&gt;";
                  echo "&lt;br&gt;";
                  echo $row['na_id']; 
                  echo "&lt;br&gt; " ;
                  echo "&lt;br&gt; " ;
                  echo $row['phone']; 
                  echo "&lt;br&gt;";
                  echo "&lt;br&gt; " ;
                  echo $row['sex']; 
                  echo "&lt;br&gt; " ;
                  echo "&lt;br&gt; " ; 
                  echo $row['placeOfBirth']; 
                  echo "&lt;br&gt;";
                  echo "&lt;br&gt;";
                  echo $row['birthday
  </code></pre>