This question contains a lot of topics, I'll try a short summary on what has to be taken care of in order to solve your issue at hand.
(1) File Upload
First you have to make an upload available. Basically you have at least two components.
- The HTML form
- some (php) code to work with the file.
Example HTML code:
<form action="your_upload_script.php" method="post" enctype="multipart/form-data">
Your XLS file: <input type="file" name="xlsfile" size="50" />
<input type="submit" name="submit" value="Submit" />
</form>
A simple, but solid example php code can be found here.
Keep in mind, uploading files can have a few more issues, p.e. regulated upload sizes and such.
(2) Parsing the Excel file
Now that your file is uploaded, you have to parse it. I recommend using PHPExcel, which is a ...
... Project providing a set of classes for the PHP programming
language, which allow you to write to and read from different
spreadsheet file formats, like Excel (BIFF) .xls, Excel 2007
(OfficeOpenXML) .xlsx, CSV, Libre/OpenOffice Calc .ods, Gnumeric, PDF,
HTML, ...
(3) Storing the values in your tables
While or after parsing the spreadsheets you'll eventually have to store it in your tables. Whatever you do, please refrain from using the old mysql connector in php, since this one is old and deprecated. Use mysqli or PDO instead.
Again, this is only the short story. You'll eventually encounter more challenges and issues on the way.
LOAD DATA INFILEoption - which have you decided to use? And what's your question about it?