Guillermo,<div style="overflow-wrap: break-word;"><br clear="none" style="overflow-wrap: break-word;"></div><div style="overflow-wrap: break-word;">Yes, PHP is not triggered on the first result but others starting from the second result display the pdf in a viewerr I made.</div><br><div id="ymail_android_signature"><a id="ymail_android_signature_link" href="https://go.onelink.me/107872968?pid=InProduct&c=Global_Internal_YGrowth_AndroidEmailSig__AndroidUsers&af_wl=ym&af_sub1=Internal&af_sub2=Global_YGrowth&af_sub3=EmailSignature">Sent from Yahoo Mail on Android</a></div> <br> <blockquote style="margin: 0 0 20px 0;"> <div style="font-family:Roboto, sans-serif; color:#6D00F6;"> <div>On Fri, Feb 10, 2023 at 17:59, Roger Guilherme</div><div><memoria.info@gmail.com> wrote:</div> </div> <div style="padding: 10px 0 0 20px; margin: 10px 0 0 0; border-left: 1px solid #6D00F6;"> <div id="yiv1638777025"><div dir="ltr"><div class="yiv1638777025gmail_quote"><div><br></div><div><br></div><div>Dear Francisco<br><br>I don't think I quite understand what is going on. Correct me if I got it wrong.<br><br>- In the result list, isn't the link to the PDF displayed from the second result?<br><br>- In the first result of the list PHP is not being triggered?<br><br></div><div>best regards,</div><div><br></div><div>Roger</div><div><br></div><div> </div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex;" class="yiv1638777025gmail_quote"><div><div>
      <br>
      -------- Doorgestuurd bericht --------
      <table cellspacing="0" cellpadding="0" border="0">
        <tbody>
          <tr>
            <th valign="BASELINE" nowrap="" align="RIGHT">Onderwerp:
            </th>
            <td>[DKIM] [Isis-users] External PHP</td>
          </tr>
          <tr>
            <th valign="BASELINE" nowrap="" align="RIGHT">Datum: </th>
            <td>Thu, 9 Feb 2023 06:40:04 +0000 (UTC)</td>
          </tr>
          <tr>
            <th valign="BASELINE" nowrap="" align="RIGHT">Van: </th>
            <td>Francisco Tamor <a rel="nofollow noopener noreferrer" ymailto="mailto:fttamor@yahoo.com" target="_blank" href="mailto:fttamor@yahoo.com"><fttamor@yahoo.com></a></td>
          </tr>
          <tr>
            <th valign="BASELINE" nowrap="" align="RIGHT">Aan: </th>
            <td>Isis-users <a rel="nofollow noopener noreferrer" ymailto="mailto:isis-users@iccisis.org" target="_blank" href="mailto:isis-users@iccisis.org"><isis-users@iccisis.org></a></td>
          </tr>
        </tbody>
      </table>
      <br>
      <br>
      <div style="font-family:Helvetica, Arial, sans-serif;font-size:13px;">
        <div dir="ltr">Dear Colleagues;</div>
        <div dir="ltr"><br>
        </div>
        <div dir="ltr"> I have created and external
          PHP file to view my pdf filest. However, all the first
          records  after the search result do not display the pdf file.
          Other file will show the pdf but not the first record. Hope
          somebody could help me in this. Attached are the display
          format and PHP code I used.</div>
        <div dir="ltr"><br>
        </div>
        <div dir="ltr">Thank you.</div>
        <div dir="ltr"><br>
        </div>
        <div dir="ltr"><br>
        </div>
        <div dir="ltr">----------------<br>
        </div>
        <div dir="ltr">Viewer.php</div>
        <div dir="ltr"><br>
        </div>
        <div dir="ltr">
          <div dir="ltr"><?php<br>
            session_start();<br>
            $_SESSION=array();<br>
            include("central/config.php");<br>
            include("$app_path/common/get_post.php");<br>
            $new_window=time();<br>
            //foreach ($arrHttp as $var=>$value) echo "$var =
            $value<br>";<br>
            <br>
            if (isset($_SESSION["lang"])){<br>
                $arrHttp["lang"]=$_SESSION["lang"];<br>
            }else{<br>
                $arrHttp["lang"]=$lang;<br>
                $_SESSION["lang"]=$lang;<br>
            }<br>
            include ("$app_path/lang/admin.php");<br>
            include ("$app_path/lang/lang.php");<br>
            ?><br>
            <br>
            <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
            Transitional//EN"<br>
              
             <a rel="nofollow noopener noreferrer" target="_blank" href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"</a>><br>
            <br>
            <html lang="pt-br" xmlns=<a rel="nofollow noopener noreferrer" target="_blank" href="http://www.w3.org/1999/xhtml">"http://www.w3.org/1999/xhtml"</a>
            xml:lang="pt-br"><br>
            <br>
            <head profile=<a rel="nofollow noopener noreferrer" target="_blank" href="http://www.w3.org/2005/10/profile">"http://www.w3.org/2005/10/profile"</a>><br>
                    <meta http-equiv="Expires" content="-1" /><br>
                    <meta http-equiv="pragma" content="no-cache"
            /><br>
                    <META http-equiv="Content-Type"
            content="text/html; charset=ISO-8859-1"><br>
                    <meta http-equiv="Content-Language"
            content="pt-br" /><br>
                    <meta name="robots" content="all" /><br>
                    <meta http-equiv="keywords" content="" /><br>
                    <meta http-equiv="description" content="" /><br>
                            <link rel="shortcut icon"
            href="/favicon.ico" type="image/x-icon" sizes="16x16"><br>
            <br>
                    <title>PDF View</title><br>
            <br>
            <br>
              <br>
            </head><br>
            <body onload="disableContextMenu();"
            oncontextmenu="return false"><br>
                <div class="wrapper"><br>
                <div id="result"></div><br>
                    <br>
                    <iframe id="pdfframe" src=<?php
            if(isset($_POST["pdffile"])) { echo
            $_POST["pdffile"].'#toolbar=0';} ?>  width="100%"
            height="800px"></iframe><br>
                    <br>
                    <div class="embed-cover"></div><br>
                </div><br>
                <br>
                <br>
            </body><br>
            <div></html></div>
            <div><br>
            </div>
            <div><br>
            </div>
            <div>----------------------------------<br>
            </div>
            <div dir="ltr">Dislpay Format (opac.pft)
              - for v990<br>
            </div>
            <br>
            <br>
            <div>if npost(['theses'],'PD_'v990*4)=1 then<br>
              '<form action="/viewer.php" method="POST"
              target="_blank"><font face=arial size=2
              color="#000080"><b><input type="text"
              name="pdffile" value="/bases/theses/pdf/'v990*4'"
              style="display:none";></b><font face=arial
              size=2 align="left"><b> View PDF:
              &nbsp;</b><input type="submit"
              value="'v990*4'"></form>' <br>
              fi, '<br><br>'<br>
              <br>
            </div>
            <div><br>
            </div>
            <br>
          </div>
          <div><br>
          </div>
          <div dir="ltr">Search Result Display<br>
          </div>
        </div>
      </div>
    </div>
  </div>

</blockquote></div></div>
</div> </div> </blockquote>