English 中文(简体)
在 ezpdf 中循环
原标题:while loop in ezpdf
  • 时间:2012-05-24 17:52:47
  •  标签:
  • php

我和Zezpdf有麻烦。 这对第一排唱片来说很管用, 但我无法在 ezpdf 中取得所有的记录。 似乎 ezpdf 在第一张唱片之后就结束了工作,

这就是我正在做的。

从交易表获取订单细节, 并根据订单的数量生成票。 因此, 可以说它有三张要生成的票, pdf将只生成第一排的票。 它不会积累第二排和第三排的数据 。

Here is my code. http://pastebin.com/DMaZUpqw

请救救我

Thanks Ali

问题回答

那么如果我得到的正确,它应该印出在 pdf 文档上的多张票。 为什么这条线会被评论呢? :

#$pdfid = $pdf->newPage(1, $pdfid,  after );

你不必再加一页才能去印刷吗?

If $RowsTkt actually returns multiple rows, there is no way, it only iterates once. Have you checked (by dumping an index or such) that the loop actually does not execute three times as you implied?

Regards STEFAN





相关问题
Brute-force/DoS prevention in PHP [closed]

I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

定值美元

如何确认来自正确来源的数字。

Generating a drop down list of timezones with PHP

Most sites need some way to show the dates on the site in the users preferred timezone. Below are two lists that I found and then one method using the built in PHP DateTime class in PHP 5. I need ...

Text as watermarking in PHP

I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...

How does php cast boolean variables?

How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...

热门标签