Quantcast
Channel: PHPExcel Forum Rss Feed
Viewing all articles
Browse latest Browse all 2707

New Post: php excel formula field returning 0

$
0
0
Hi thanks all for the support ....
as i have tried several ways and didn't get the result i am looking for ... so i have changed the the way of reading the file ... their i used php odbc for reading the file
        $excelFile = realpath($full_file_withputh);
        $excelDir = dirname($excelFile);
        $connection = odbc_connect("Driver={Microsoft Excel Driver (*.xls)};DriverId=790;Dbq=$excelFile;DefaultDir=$excelDir" , '', '');
        $result = odbc_exec ($connection, "select * from [sheet$] ");

        $row = odbc_fetch_array($result)
it by default takes the first row as Field name

and its worked

Viewing all articles
Browse latest Browse all 2707


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>