Save your spreadsheet with the CSV extension. This format allows major databases to easily import their data.
How you work with PHP, it would be interesting to opt for Mysql as a database.
- Save your spreadsheet with the CSV extension.
- Create your database in Mysql.
- Download Heidisql, a very user-friendly open-source front end for managing your banks - http://www.heidisql.com/download.php
- Connect Heidisql to your Mysql server (localhost if on your local machine, or on the remote server IP)
- Create your database, create the tables that will receive the data. Heidi offers very intuitive tools to create your database.
- With the database and tables created, click the Tools > Import CSV Data menu.
- With the imported data, connect your PHP file to the database created.
Another solution is to choose SQL Server as a database. It is possible to import spreadsheets directly into the command line.
SELECT * INTO CADASTRO FROM OPENROWSET('Microsoft.ACE.OLEDB.12.0',
'Excel 8.0;Database=c:ARQUIVO_A_SER_IMPORTADO.xls',
'SELECT * FROM [NOME_DA_PLANILHA$]')
If this command does not work immediately, make the following changes to your SQL Server;
EXEC sp_configure 'show advanced options',1
GO
reconfigure with override
GO
EXEC sp_configure 'Ad Hoc Distributed Queries',1
GO
reconfigure with override
GO