blackterror Posted March 17, 2010 Share Posted March 17, 2010 Hello to you all. I need some help with my PDF invoice. What I want it's to show the transaction ID on the PDF invoice. This is how my Cell it's looking: $pdf->Cell(50,5,'$transaction.transid',1,0,'C',0);} I maked a screenshoot to show what I'm looking for. So tel me guys, where I'm wrong? 0 Quote Link to comment Share on other sites More sharing options...
m00 Posted March 17, 2010 Share Posted March 17, 2010 - sorry, never mind 0 Quote Link to comment Share on other sites More sharing options...
blackterror Posted March 17, 2010 Author Share Posted March 17, 2010 No problem m00, but what did you said? Any opinion it's good welcomed. 0 Quote Link to comment Share on other sites More sharing options...
m00 Posted March 17, 2010 Share Posted March 17, 2010 Well, I said that you'll need to remove the quotes: $pdf->Cell(50,5,$transaction.transid,1,0,'C',0);} But I can't find a declared transaction variable in the PDF invoice. 0 Quote Link to comment Share on other sites More sharing options...
blackterror Posted March 17, 2010 Author Share Posted March 17, 2010 Well, I said that you'll need to remove the quotes: $pdf->Cell(50,5,$transaction.transid,1,0,'C',0);} But I can't find a declared transaction variable in the PDF invoice. Does it help if I post the .tpl version? 0 Quote Link to comment Share on other sites More sharing options...
m00 Posted March 17, 2010 Share Posted March 17, 2010 You can try something like this: $result = select_query("tblaccounts", "transid", array("invoiceid" => $invoicenum)); $data = mysql_fetch_array($result); $pdf->Cell(50, 5, $data['transid'], 1, 0, 'C', 0); 0 Quote Link to comment Share on other sites More sharing options...
blackterror Posted March 18, 2010 Author Share Posted March 18, 2010 Thanks for your reply m00, but didn't work either. Should I post the .tpl version? 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.