Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PHP Fatal error: Uncaught MpdfMpdfException: Temporary files directory "E:Inetpubvhostsgsm.org.myhttpdocsprint/custom/temp/dir/path" is not writable in E:Inetpubvhostsgsm.org.myhttpdocsprintvendormpdfmpdfsrcCache.php:17
- Stack trace:
- #1 E:Inetpubvhostsgsm.org.myhttpdocsprintvendormpdfmpdfsrcMpdf.php(1054): MpdfServiceFactory->getServices(Object(MpdfMpdf), Object(PsrLogNullLogger), Array, 0, Object(MpdfLanguageLanguageToFont), Object(MpdfLanguageScriptToLanguage), NULL, NULL, NULL, NULL)
- #2 E:Inetpubvhostsgsm.org.myhttpdocsprintprint-form.php(88): MpdfMpdf->__construct(Array)
- #3 {main} thrown in E:Inetpubvhostsgsm.org.myhttpdocsprintvendormpdfmpdfsrcCache.php on line 17
- require_once 'E:Inetpubvhostsgsm.org.myhttpdocsprintvendorautoload.php';
- use MpdfMpdf;
- $servername = "localhost";
- $username = "root";
- $password = "";
- $dbname = "gsm_db";
- $conn = mysqli_connect($servername, $username, $password, $dbname);
- if (!$conn) {
- die("Connection failed: " . mysqli_connect_error());}
- $data = '
- <html><head><title>Document</title></head>
- <body>
- <table><caption>Membership Application Form</caption>';
- $sql = mysqli_query($conn,"SELECT * FROM borang_permohonan where id_borang_permohonan=528");
- while ($row = mysqli_fetch_array($sql)) {
- $data .='
- <tr>
- <td><img style="max-width:300px; max-height:5px" src="'.$row['gambarpaspot'].'"></td>
- </tr>
- <tr>
- <td>Title</td><td>: '.$row['title'].'</td>
- </tr>
- <tr>
- <td>Full name</td><td>: '.$row['fullname'].'</td>
- </tr>
- <tr>
- <td>Date of birth</td><td>: '.$row['date_birth'].'</td>
- </tr>
- <tr>
- <td>Place of birth</td><td>: '.$row['place_birth'].'</td>
- </tr>
- ';
- }
- $data .= '</table></body></html>';
- $mpdf = new mPDF();
- $mpdf->WriteHTML($data);
- $mpdf->Output();
- exit;?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement