dsfdsf23423 2015-04-09 19:14
浏览 9
已采纳

too long

This question already has an answer here:

I've done quite a bit of searching with no luck and I'm not sure if this is even possible but if so hopefully someone can point me in the right direction.

I have a PHP script that queries a database and places the results into an HTML table. I would like to output that table to an image (jpg, png, bmp, whatever...)

I imagine it would have to be in JS or AJAX but any suggestion would be appreciated.

Thanks,

</div>
  • 写回答

1条回答 默认 最新

  • duanchen7036 2015-04-09 19:21
    关注

    I would advise using something like GD. http://php.net/manual/en/ref.image.php

    Also found: Save HTML table as an image

    The issue is you have to render the HTML into the Table and then convert that rendered HTML into an Image. Do you have an example of the table? If it's not too complex, you could just draw a table with the results in it.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥20 BAPI_PR_CHANGE how to add account assignment information for service line
  • ¥500 火焰左右视图、视差(基于双目相机)
  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?