我不知道這是否發生。無論如何,我的問題是通過PHP導出爲CSV並顯示超鏈接單元格
我有我的網站日誌功能,從管理員可以查看或訪問最終用戶訪問過的位置。 - >這很簡單PHP
現在,如果他想導出日誌,他可以但導出的CSV沒有鏈接到地點。
希望你有。
我張貼代碼您參考:
$contents="Sr.No,User_Type,Location\n";
$add = "select * from log_table order by id";
$user_query = mysql_query($add);
while($row = mysql_fetch_array($user_query))
{
$contents.=$row[log_id].",";
$contents.=$row[Type].",";
$contents.="<a href='$row[location]'>".$row[location]."</a>\n";
}
Header("Content-Disposition: attachment; filename=export.csv");
print $contents;
我曾試圖把標籤左右位置。但它不起作用。
我期望是
而我得到的是
先感謝=)
它的工作完美!這就是我想要的 – Anusha