Generic PHP script to upload data to mysql

I am looking for a generic php script that will let me select a csv file (see sample below) and insert the data in the file in to a mysql database. Details of the the upload should be displayed on the screen. In case of errors, the exact error and line number should also be mentioned. The following features are required.

1) The database name, server ip, username and password would be configured in the script.

2) The table name would be the first row of the csv file.

3) The column names would be the second row of the csv file.

4) The delimiter used in the CSV would be comma (,) but it should be configurable at the top of the script in case I need to change it. All data elements would be enclosed in double quotes ("). Commas in between two double quotes should be ignored.

5) MySQLi should be used.

6) mysqli_real_escape_string() Function should be used to escape any special character.

7) After completing the execution of the script, the number of records inserted should be displayed.

8) In case of error, the entire file should be rolled back using mysql transactions. The line number and error details of the first encountered error should be displayed.

9) Basic validation of the csv file should be done. The following errors should be captured.

34 freelancers are bidding on average $153 for this job

Hello,
Thanks for giving me the opportunity to discuss your project.
I am a professional PHP developer with an experience of more than 8 years in creating and customizing PHP based websites, themes and plugins/moMore

Hello,
I have gone through the post and yes; I will help you for sure to build generic php script that will let me select a csv file and insert the data in the file in to a mysql database
[login to view URL], [login to view URL]More

Greetings sir,
how are you today sir? hope fine. Sir,
I have read your project details and i will create php script that will allow you to upload your csv file with data validation and report (on success and errMore

HELLO THERE,
Over 200+ Positive Reviews.
Over 90% Completion Rate.
5 Star Rating.
10+ Years of experience in PHP/MYSQL
I AM INTERESTED IN WORKING ON THIS PROJECT.
PLEASE CHECK MY REVIEWS AND THEN DECIDE OMore

Dear Client,
I read your job description carefully.
I have developed website to import CSV to MySQL using PHP and Bootstrap.
I can make your website in a day.
Also I can start my working now. I will deliver higMore

Hello, I have gone through project and understood the requirement. I will be able to create a PHP script which will server the purpose. I am a full time dedicated freelancer having 8 years of PHP and mysql expertise anMore

Hello Sir,
hope you are fine,
I am interested in your work "Generic PHP script".
I will create this application in Custom PHP
I have 5 year experience in Web Development Service I am able to this job quicklyMore

I completely understand your requirements.
I have experience working in CSV parsing and insertion in database. I will also use proper validations before inserting data in database. I will also use transactions, so thatMore