Posted by : Arief Wicaksana Jumat, 15 Februari 2013

include "connect.php";
include ('class.ezpdf.php');
$pdf = new Cezpdf('a4','landscape');

  

        // Atur margin
        $pdf->ezSetCmMargins(2, 3, 3, 3);

        $pdf->addObject($all, 'all');
        $pdf->closeObject();

           
        $sql = mysql_query("SELECT * FROM product ");         
        $i = 1;
        while($r = mysql_fetch_array($sql)) {
           
            $data[$i]=array('No'=> $i,              
                            'Id Product'=>$r[id_product],
                            'Name'=>$r[name],
                            'Price'=>$r[price],
                            'Detail'=>$r[detail]
                            );
                               

            $i++;

           
        }
       
        $pdf->ezStartText(100, 557, 12);
        $pdf->ezStartText2(500, 557, 12);
        $pdf->ezStartPageNumbers(35, 15, 10);
        $pdf->ezTable($data, '', '', '');
        $pdf->ezStream();
?>

{ 1 komentar... read them below or add one }

  1. my business partner wanted form name last month and saw an excellent service with a lot of sample forms . If people have been needing IRS W-3 too , here's a 2011 form w 3

    BalasHapus

Welcome to My Blog

- Copyright © Dunia Blogging & Komputer -Robotic Notes- Powered by Blogger - Designed by Johanes Djogan -