note 73913 added to ref.cpdf
| From: | nuihi at yahoo dot com | Date: | Thu, 15 Mar 2007 09:23:15 +0000 |
| Subject: | note 73913 added to ref.cpdf | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-124474@lists.php.net to get a copy of this message | ||
i try to display the data using looping but it appear only the last data..can anyone help me?
***************************
$student="SELECT name FROM tblstudent";
$result=$conn->Execute($student);
if(!$result->EOF) {
while(!$result->EOF){
$channel=$result->fields("channel");
$cpdf = cpdf_open(0);
cpdf_page_init($cpdf, 1, 0, 595, 842, 1.0);
cpdf_add_outline($cpdf, 0, 0, 0, 1, "Page 1");
cpdf_begin_text($cpdf);
cpdf_set_font($cpdf, "Times-Roman", 30, "WinAnsiEncoding");
cpdf_set_text_rendering($cpdf, 1);
cpdf_text($cpdf, $student, 50, 50);
cpdf_end_text($cpdf);
cpdf_moveto($cpdf, 50, 50);
cpdf_lineto($cpdf, 540, 330);
cpdf_stroke($cpdf);
cpdf_finalize_page($cpdf, 1);
cpdf_finalize($cpdf);
Header("Content-type: application/pdf");
cpdf_output_buffer($cpdf);
cpdf_close($cpdf);
$result->movenext();
}
}else{
echo "NO DATA";
}
*******
----
Server IP: 202.157.183.147
Probable Submitter: 61.6.65.106
----
Manual Page -- http://www.php.net/manual/en/ref.cpdf.php
Edit -- https://master.php.net/note/edit/73913
Del: integrated -- https://master.php.net/note/delete/73913/integrated
Del: useless -- https://master.php.net/note/delete/73913/useless
Del: bad code -- https://master.php.net/note/delete/73913/bad+code
Del: spam -- https://master.php.net/note/delete/73913/spam
Del: non-english -- https://master.php.net/note/delete/73913/non-english
Del: in docs -- https://master.php.net/note/delete/73913/in+docs
Del: other reasons-- https://master.php.net/note/delete/73913
Reject -- https://master.php.net/note/reject/73913
Search -- https://master.php.net/manage/user-notes.php