TSC TTP Pro标签打印php错误
我有fpdf的代码 我确实创建了将3行文本打印到pdf中的代码,现在可以了。当我发出打印命令时,打印机打印空白页 你能告诉我应该使用什么标签代码吗?目前我正在使用 L7163 或者可能是我使用了错误的代码TSC TTP Pro标签打印php错误,php,apache,printing,Php,Apache,Printing,我有fpdf的代码 我确实创建了将3行文本打印到pdf中的代码,现在可以了。当我发出打印命令时,打印机打印空白页 你能告诉我应该使用什么标签代码吗?目前我正在使用 L7163 或者可能是我使用了错误的代码 $pdf = new PDF_Label('L7163'); $pdf->AddPage(); $query = "SELECT product, color FROM invoice_items WHERE tid = '$getID' ORDER BY id ASC"; $r
$pdf = new PDF_Label('L7163');
$pdf->AddPage();
$query = "SELECT product, color FROM invoice_items WHERE tid = '$getID' ORDER BY id ASC";
$result = $conn->query($query);
if ($result->num_rows > 0) {
// output data of each row
while($row = $result->fetch_assoc()) {
$product = $row["product"];
$color = $row["color"];
$text = sprintf("%s\n%s\n%s", "$getID", "$product", "$color");
$pdf->Add_Label($text);
}
} else {
echo "0 results";
}
$conn->close();
谢谢