Jump to content

[SOLVED] FPDF


yogibear

Recommended Posts

Hi

 

I am using FPDF to create a PDF document using results in a mysql database. The following code doesn’t work and always returns a 0

$Name = "Joe Bloggs";
$result=mysql_query("SELECT Name FROM payment WHERE Name = '$Name' ORDER BY Payment_id",$link);
$payments = mysql_numrows($result);
$column_payments = $column_payments.$payments."\n";

 

But this code works and I can’t see what is causing the problem.

 

$result=mysql_query("SELECT Name FROM payment WHERE Name = 'Joe Bloggs' ORDER BY Payment_id",$link);
$payments = mysql_numrows($result);
$column_payments = $column_payments.$payments."\n";

 

Any ideas

Thanks yogi

Link to comment
https://forums.phpfreaks.com/topic/123263-solved-fpdf/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.