Ciao a tutti
io sto cercando il modo di importare i file di excel in mysql
ho trovato in internet phpexcelreader e riesco a visualizzare i dati EXCEL in una pagina così:
<?php
require_once ('excel/reader.php');
$xls = new Spreadsheet_Excel_Reader();
$xls->read('indirizzi.xls'); // replace with your excel file
$no_of_columns = $xls->sheets[0]['numCols'];
$no_of_rows = $xls->sheets[0]['numRows'];
echo 'Colonne: ' . $no_of_columns . '
';
echo 'Righe ' . $no_of_rows . '
';
echo '<table style="border-collapse: collapse;">';
for($i= 1; $i<= $no_of_rows; $i++) {
echo '<tr>';
for($j= 1; $j <= $no_of_columns; $j++) {
echo '<td style="border:1px solid black;">';
echo $xls->sheets[0]['cells'][$i][$j];
echo '</td>';
}
echo '</tr>';
}
echo '</table>';
?>
ma per poter salvare i dati visualizzati in una tabella mysql come faccio??