I want export php web page to excel below page.
http://opendcim.org/demo/rowview.php?row=1
That site ID is "dcim" password is "dcim".
I want make same table in xls.
How can export to xls?
thank you
I want export php web page to excel below page.
http://opendcim.org/demo/rowview.php?row=1
That site ID is "dcim" password is "dcim".
I want make same table in xls.
How can export to xls?
thank you
sorry. because you seems never tried before ask. i will only give you the way not the code.
i agree with magnus that this is not web free coding services. i hope you understand.
create excel from html table have 2 ways.
use php header above your variable table then echo it into browser
header("Content-Type: application/vnd.ms-excel; charset=utf-8");
header("Content-Disposition: attachment; filename=table.xls");
echo "YOUR TABLE";
this is the simple/fast way. but its only support ms.excel 2003. If you trying to open table.xls, ms.excel will throw you into web display menu not normal display menu. and you will get warning from ms.excel that your format may be cant read (i forgot what the warning content actually)
i recommend to use phpexcel from codeplex. this library support ms.excel 2007 (both .xlx and .xlsx). if you open your excel, ms.excel will bring you to normal display view like normal excel, you will not get any warning like above and you can use special feature in ms.excel like chart, filter ,etc. but your excel creating process will not simple as above, you need to read the documentation first.