yogibear Posted September 8, 2008 Share Posted September 8, 2008 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 More sharing options...
yogibear Posted September 8, 2008 Author Share Posted September 8, 2008 Hi I see what I did the ! was in the wrong place. Thanks anyway yogi Link to comment https://forums.phpfreaks.com/topic/123263-solved-fpdf/#findComment-636571 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.