第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問(wèn)題,去搜搜看,總會(huì)有你想問(wèn)的

pdf中的動(dòng)態(tài)文本

pdf中的動(dòng)態(tài)文本

PHP
狐的傳說(shuō) 2021-11-13 17:24:08
我使用 pdf 并遇到以下問(wèn)題:當(dāng)我寫文本時(shí)一切正常,但是當(dāng)我想寫一個(gè)動(dòng)態(tài)文本時(shí),比如“Hello X”,其中 X 是從數(shù)據(jù)庫(kù)中獲取的,它不起作用。我的意思是,我沒(méi)有顯示數(shù)據(jù)庫(kù)中的名稱。我使用下面的代碼編寫它:$ pdf-> Write (0, 'Faculty of Aerospace', '', 0, 'L', true, 0, false, false, 0);$ paragraph. = '<P>I am writing this letter in support of <? Php if ($ sex == "male"):?> Mr. <? Php else:?> Ms. <? php endif?> <? php echo $ nume_student;?>, who is a Computer-aided graphics student at our college. </p> ';$ pdf-> Write (0, $ paragraph, '', 0, 'J', true, 0, false, false, 0);我想出現(xiàn)我寫這封信是為了支持先生......但實(shí)際出現(xiàn)我寫這封信是為了支持 <? Php if ($ sex == "male"):?> Mr.
查看完整描述

1 回答

?
互換的青春

TA貢獻(xiàn)1797條經(jīng)驗(yàn) 獲得超6個(gè)贊

您不能<?php .... ?>在 PHP 字符串中使用。


$pdf->Write(0, 'Faculty of Aerospace', '', 0, 'L', true, 0, false, false, 0);


$paragraph = "<p>I am writing this letter in support of " .

             ($sex == "male" ? "Mr. " : "Ms. ") . $nume_student .

             " who is a Computer-aided graphics student at our college.</p>";


$pdf->Write(0, $paragraph, '', 0, 'J', true, 0, false, false, 0);

這些是非?;镜恼Z(yǔ)法問(wèn)題。


查看完整回答
反對(duì) 回復(fù) 2021-11-13
  • 1 回答
  • 0 關(guān)注
  • 156 瀏覽

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)