how i can import an excel file using php and print it in a html table -
i try use phpoffice/phpexcel haven't idea of it... have form in html
<body> <div align="center">elenca tabelle presenti nel db</div> <form action="index.php" method="post" enctype="multipart/form-data"> <table> <tr> <td> filename: </td> <td> <input type="file" name="file" id="file"> </td> </tr> <tr> <td colspan="2" align="right"> <input type="submit" name="submit" value="submit"> </td> </tr> </table> </form> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0msbjdehialfmubbqp6a4qrprq5ovfw37prr3j5elqxss1yvqotnepnhvp9aj7xs" crossorigin="anonymous"></script> <script src="/include/js/bootstrap-contextmenu.js"></script> <script type="text/javascript" src="/include/js/bootflat.min.js"></script> <script type="text/javascript" src="https://cdn.datatables.net/s/bs/pdfmake-0.1.18,dt-1.10.10,af-2.1.0,b-1.1.0,b-colvis-1.1.0,b-html5-1.1.0,b-print-1.1.0,cr-1.3.0,fc-3.2.0,fh-3.1.0,kt-2.1.0,r-2.0.0,rr-1.1.0,sc-1.4.0,se-1.1.0/datatables.min.js"></script> </body>
i want use upload excel file , in file call index.php, want query show data excel file have upload in html table, how can this? thank much
i have installed package phpoffice/phpexcel composer, can use libraries this
Comments
Post a Comment