Re: FPDF and MySQL
| From: | Marek Kilimajer | Date: | Fri, 20 Sep 2002 11:06:51 +0000 |
| Subject: | Re: FPDF and MySQL | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-116992@lists.php.net to get a copy of this message | ||
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