简体   繁体   中英

how can I retrieve data from Excel file *.xlsx by using php code

my code, it can only using with excel *.xls file

$connection = odbc_connect("Driver={Microsoft Excel Driver (*.xls)};DriverId=790;Dbq=$excelFile;DefaultDir=$excelDir" , '', '');

how can i connect to excel *.xlsx file.

I have an example for you. It written using simple php code. May it helps you
Here's the link to get the program.
To download the zip : click menu File, then choose download

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM