2012-02-01 49 views
-1

我在MySQL中有一行的值叫做($)lesson_title ...我希望这个值是由头文件发送的FPDF生成的PDF文件的文件名,而不是通用的文件名。以下是在pdf.php文件头目前发送:来自MySQL的文件名字段值

/* 
* Write PDF content to file. 
*/ 
$pdf->Output($lessonPlanFile, 'F') ; 
header('Content-type: application/pdf'); 
header('Content-Disposition: attachment; filename="My_Lesson_Plan.pdf"'); 

其中“My_Lesson_Plan.pdf”应该是$ lesson_title

听起来很简单,我已经尝试了不少东西但无法获得正确的语法。 = /上串插

回答

相关问题