我的打印行动无法运作

时间:2017-05-09 01:39:37

标签: php

在这个下面的程序中,当我尝试运行打印操作时,表' kiri'不打印数据。我的代码有问题吗?

<body class='landScape'>";
?>
<div class="logo">
<img src="logo.jpg" width="80" height="40">
</div>
<hr>
<?php

include "connect.php";
$secretword = $_POST["secretword"];
?> 

<?php echo "<h3>FAKTUR PAJAK REQUISITION CHECK SHEET</h3>";

$sqlheader = "select a.no_trans, a.dept, a.pic, a.issue_date, a.sales_pool , a.reg_status, a.check_by ,a.dept_mgr,receive_by ,a.checkin_by, a.approve_by,a.status,a.other,a.remark,b.desc2
from material_header a, master_add b where a.dept = b.desc1 and no_trans = '$secretword' limit 1";

$hasilheader = mysql_query($sqlheader);
$s = mysql_fetch_array($hasilheader);

$no_trans = $s['no_trans'];
$dept = $s['dept'];
$pic = $s['pic'];
$issue_date = $s['issue_date'];
$sales_pool = $s['sales_pool'];
$reg_status = $s['reg_status'];
$approve_by = $s['approve_by'];
$check_by = $s['check_by'];
$dept_mgr = $s['dept_mgr'];
$receive_by = $s['receive_by'];
$checkin_by = $s['checkin_by'];
$desc2 = $s['desc2'];
$other = $s['other'];
?>

<?php echo "<table class='kiri'>
    <tr><td>Registration Number </td><td>: $no_trans </td></tr>
    <tr><td>Issue Date </td><td>: $issue_date</td></tr>
    <tr><td>Department/Division </td><td>: $dept </td></tr>
    <tr><td>Sales Pool </td><td>: $sales_pool </td></tr>
    <tr><td>Registration Status </td><td>: $reg_status </td></tr>
</table>"; 

&GT;

当我运行程序时,我会给动作打印,它位于&#39; kiri&#39;表。 但是当我试图对打印件进行操作时,回声不起作用。

0 个答案:

没有答案