FPDF and MySQL - PHP

This is a discussion on FPDF and MySQL - PHP ; Hi, I found a free pdfclass called FPDF http://www.fpdf.org , that I can use with PHP to create pdf files with. Before someone tells me "Read The Manual", I have read their page and used Google to search for notes ...

+ Reply to Thread
Results 1 to 2 of 2

FPDF and MySQL

  1. Default FPDF and MySQL

    Hi,

    I found a free pdfclass called FPDF http://www.fpdf.org, that I can use with
    PHP to create pdf files with. Before someone tells me "Read The Manual", I
    have read their page and used Google to search for notes on how called mysql
    into a PDF and I am lost. Does anyone know where there is a tutorial.

    Thanks,

    Chuck Payne
    Magi Design and Support



  2. Default Re: [PHP] FPDF and MySQL

    If you look at the tutorial no. 5 on www.fpdf.org, all you need is to
    change LoadData function, example:
    function LoadData($condition)
    {
    $res=mysql_query("SELECT * FROM table WHERE 1 AND ($condition)");
    while($data[]=mysql_fetch_row($res) ) { }
    return $data;
    }

    Chuck Payne wrote:

    >Hi,
    >
    >I found a free pdfclass called FPDF http://www.fpdf.org, that I can use with
    >PHP to create pdf files with. Before someone tells me "Read The Manual", I
    >have read their page and used Google to search for notes on how called mysql
    >into a PDF and I am lost. Does anyone know where there is a tutorial.
    >
    >Thanks,
    >
    >Chuck Payne
    >Magi Design and Support
    >
    >
    >
    >
    >



+ Reply to Thread