Find Jobs
Hire Freelancers

PHP page to insert records from CSV to Mysql with some validations

$10-50 USD

Completed
Posted almost 8 years ago

$10-50 USD

Paid on delivery
We need a PHP page to insert records from CSV to Mysql with some validations There are 6 fields in the CSV file. Procedure would be 1. User selects CSV file from browse button 2. The data is inserted (3 columns) into first Table A 3. Retrieve Auto generated Id from Table A and insert rest 3 columns in Table B 4. While inserting records in Table B check if records exist, if it does do not insert that particular record and show error in a PHP page about duplicate records You can use the following to load CSV file: MySQL has a feature LOAD DATA INFILE, which allows it to import a CSV file directly in a single SQL query, without needing it to be processed in a loop via your PHP program at all. Example: <?php $query = <<<eof LOAD DATA INFILE '$fileName' INTO TABLE tableName FIELDS TERMINATED BY '|' OPTIONALLY ENCLOSED BY '"' LINES TERMINATED BY '\n' (field1,field2,field3,etc) eof; $db->query($query); ?>
Project ID: 10674704

About the project

28 proposals
Remote project
Active 8 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
Hi, I have worked on a self driven project Mango EASO which takes data from eBay, Amazon in CSV format of the transactions and inserts in EASO application. It then automatically calculates profits and loss and taxes for the e-commerce sellers. So, I have used CSV file upload extensively. Kindly ping to discuss further on the project.
$30 USD in 1 day
5.0 (1 review)
2.7
2.7
28 freelancers are bidding on average $43 USD for this job
User Avatar
I have read your project details, and I am interested in offering my services. I provide 100% satisfaction guaranteed on all my work. Milestone is required to begin; to be released when the job has been satisfactorily completed. Contact me at your soonest convenience so we may get your solution delivered quickly. Thanks, coderXO
$60 USD in 1 day
4.9 (743 reviews)
8.3
8.3
User Avatar
hello sir, i can do your project.... please accept my bid so that i can start it... i m expert in this type of project... u can also see my portfolio... please sir accept my bid.. please hope u will do i m waiting for your response.. thank you.. :)
$50 USD in 0 day
4.9 (316 reviews)
6.6
6.6
User Avatar
First thing is that you WILL need a loop for two reasons - your file does not match a table exactly. You have 3+3 fields going into 3+3 columns in separate tables. Second is the requirement to detect duplicates and report I assume only the duplicates. I can write the code for this. Regards.. Richard
$44 USD in 1 day
5.0 (74 reviews)
6.2
6.2
User Avatar
HI, I can do this job which will allow user to upload CSV files to MySQL It will have flow like you explained 1. User selects CSV file with browse button 2. The data is inserted Table A 3. Inerting data in table 4. If duplicate exists in table A will show error message a not insert
$66 USD in 1 day
5.0 (167 reviews)
5.7
5.7
User Avatar
Hi, I have already use the mysql 5 command to load data directly into database from csv. So, hopefully I will complete this job as well. Let us discuss more in chat thanks
$45 USD in 3 days
5.0 (40 reviews)
5.1
5.1
User Avatar
Hi ! there I am perfect freelancer for your project Just read my profile reviews and check what say others about me I can finish your project within your deadline and budget with 100% of your satisfaction thanks
$55 USD in 3 days
5.0 (18 reviews)
5.0
5.0
User Avatar
Loading like that doesn't always work on shared web hosting. Just use fgetcsv which infers the CSV structure and then a query to insert. Easy. Couple of lines.
$40 USD in 1 day
4.9 (16 reviews)
5.3
5.3
User Avatar
we are UK Base Company , Development office in India. We have dedicated team for PHP, Mobile Apps ( iOS, iPad, Android), Organic SEO and SMM and digital Marketing, and we have developed and deployed multiple scalable applications on various PHP frameworks/tools like CakePHP, PHPClassifieds, Laravel, Angular js, node js, Joomla, Drupal, OXID eShop, Magento, Wordpress etc.
$83 USD in 2 days
5.0 (22 reviews)
4.3
4.3
User Avatar
A Full Stack Developer with 5 years of experience in web development using Php, Jquery, Ajax, bootstrap, Angular Js, Wordpress.
$37 USD in 1 day
5.0 (9 reviews)
4.1
4.1
User Avatar
interested. pm me
$55 USD in 1 day
4.3 (14 reviews)
4.8
4.8
User Avatar
Hello, I have already done such importing CSV kind of data in MYSQL(in core php) in a voice calling billing web app. And I have read the descriptions and I am ready to start. I have 4 years of Experience in php/mysql/ajax. I am further available to discuss via message.
$40 USD in 2 days
5.0 (17 reviews)
4.1
4.1
User Avatar
We need a PHP page to insert records from CSV to Mysql with some validations There are 6 fields in the CSV file. Procedure would be 1. User selects CSV file from browse button 2. The data is inserted (3 columns) into first Table A 3. Retrieve Auto generated Id from Table A and insert rest 3 columns in Table B 4. While inserting records in Table B check if records exist, if it does do not insert that particular record and show error in a PHP page about duplicate records You can use the following to load CSV file: MySQL has a feature LOAD DATA INFILE, which allows it to import a CSV file directly in a single SQL query, without needing it to be processed in a loop via your PHP program at all. Example: <?php $query = <<<eof LOAD DATA INFILE '$fileName' INTO TABLE tableName FIELDS TERMINATED BY '|' OPTIONALLY ENCLOSED BY '"' LINES TERMINATED BY '\n' (field1,field2,field3,etc) eof; $db->query($query); ?>
$35 USD in 1 day
4.1 (11 reviews)
3.9
3.9
User Avatar
Hello Sir, Your project interests me. I will be available to participate in its realization. for more information contact me zakariaa benslimane
$25 USD in 1 day
5.0 (4 reviews)
3.0
3.0
User Avatar
I have read all the four points and i will provide you full functional page as per your needs. I can start this work immediately and will provide you best work. Awaiting for your feedback. Thanks, Gaurav :)
$40 USD in 1 day
5.0 (1 review)
2.8
2.8
User Avatar
**** I have updated my bid in order to secure the project award. This is your opportunity to save 60% on an excellent service! Your project really interests me. Excellent example in the project description that provides a springboard for development! I am very confident that I can provide exactly what you are looking for as I have just completed a project very similar to this. I look forward to hearing back from you so we can begin working together. Regards, Zach Washburn
$25 USD in 1 day
5.0 (2 reviews)
1.8
1.8
User Avatar
Hi, I'm able to do that, I'm skilled with MySQL/PHP and already done some stuff like this in the past, I can have it in few hours.
$55 USD in 1 day
5.0 (1 review)
0.4
0.4
User Avatar
Hi I am highly interested to do this project. I will make you happy.I don’t need any upfront or milestone payment. Pay me when you will happy. Looking forward. Thanks
$50 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
I have a large amount of experience in database design and queries, I can help you out easily and cheaply.
$15 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
A proposal has not yet been provided
$30 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
My major is PHP i can get your job done. I've created account here but i don't use this site before. But now i want to build my reputatuion here and i believe starting with a job is an opportunity. I can deliver you work within the stipulated period of time. I've handled lots and lots of projects in the past and i believe this should be the best time to start freelancing job
$30 USD in 1 day
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
Ewing, United States
5.0
157
Payment method verified
Member since Feb 22, 2015

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.