title: how to put html code into php code for reading PDF file?
body: <p>i am trying to add html tag in php code which is used for reading PDF File.i want to add link bottom of the page and above this link pdf file is display.but i can't find way to do this. 
  i would like to do something like this image..<br>
  <img src="https://i.stack.imgur.com/7Vkkb.png" alt="enter image description here"></p>
  
  <p>means i want inline scroller for PDF file dispaly and then link for other pdf files.<br></p>
  
  <p>here the my code:<br></p>
  
  <pre><code>&lt;?php
  $filename=base64_decode($_REQUEST['file2']);
  $new_id=base64_decode($_REQUEST['id2']);
  $line = "&lt;html&gt;";
  $line .= "&lt;head&gt;";
  $line .= "&lt;title&gt;PDF test&lt;/title&gt;";
  $line .= "&lt;meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'&gt;";
  $line .= "&lt;/head&gt;";
  $line .= "&lt;body&gt;&lt;div style='position:absolute; overflow:scroll;height:100px !important'&gt;";
  $file = WEB_ROOT."/admin/images/plastic_sandesh/pdffile/".$filename;
  $length = filesize($file);
  header("Content-type: application/pdf");
  header("Content-Disposition: inline; filename=".$file);
  header("Content-Length: ".$length); 
  @readfile($file);
  
  $line .= "&lt;/div&gt;&lt;/body&gt;";
  $line .= "&lt;/html&gt;";
  ?&gt;
  
  &lt;iframe style='border:1px solid #FEFEFE; width:100px; height:100px;'&gt;
  &lt;div style="position:absolute; overflow:scroll;height:100px !important"&gt;
  &lt;?php
  $Qry2 =mysql_query( "select * from `tbl_plasticsandesh_pages` where `sandesh_id`='$new_id' order by `order`") or die(mysql_error());
  $j=1;
   $cnt=mysql_num_rows($Qry2);
  while($res2 = mysql_fetch_array($Qry2))
  {
      $file_name2=base64_encode($res['pdf_page']);
      ?&gt;
    &lt;a href="readpdf.php?act=view&amp;file=&lt;?php echo $file_name2;?&gt;$id2=&lt;?php echo $_REQUEST['id2'];?&gt;" style="color:#111"&gt;&lt;?php echo $j;?&gt;&lt;/a&gt;&lt;br /&gt;
  &lt;?php
  $j++;
  }
  ?&gt;
   &lt;/div&gt;
   &lt;/iframe&gt;
  </code></pre>
  
  <p>but the problem is the only pdf file is display ,no link for other PDF files.</p>
  
  <p>Thanks in advance.</p>