dede問(wèn)答模塊個(gè)人信息頁(yè)面回答列表亂碼,遇到這樣的問(wèn)題,大家很束手無(wú)策,先看圖吧!
話不多說(shuō),直接發(fā)布解決方法(感謝small提供技術(shù))
//他人問(wèn)題
function ac_ask()
{
$mid = request('mid', '');
$mid = is_numeric($mid)? $mid : 0;
$sql = "SELECT * FROM `yx_ask` WHERE uid = '{$mid}' AND status >= 0 LIMIT 10";
$this->dsql->SetQuery($sql);
$this->dsql->Execute();
$feeds = array();
while ($row = $this->dsql->GetArray()) {
$row['htmlurl'] = "?ct=question&askaid=".$row['id'];
$row['senddate'] = MyDate('Y-m-d H:i',$row['dateline']);
$row['title'] = ($row['title']);
$feeds[] = $row;
}
$output = json_encode($feeds);
print($output);
}
版權(quán)聲明: 本站資源均來(lái)自互聯(lián)網(wǎng)或會(huì)員發(fā)布,如果侵犯了您的權(quán)益請(qǐng)與我們聯(lián)系,我們將在24小時(shí)內(nèi)刪除!謝謝!
轉(zhuǎn)載請(qǐng)注明: dede問(wèn)答模塊個(gè)人信息頁(yè)面回答列表亂碼的解決方