Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

141
Views
How to manage CSV for add more fields for import process

I am trying to make CSV structure to import data to database using PHP.

I have title body and a field collection like: Friends:

name, email,number.

Friend fields is multiple. For example:

firstname, firsttest@test.com, 12225435
 secondname, secondtest@test.com, 122234534  

For title and body, i can manage easily but how can i manage for friends column in CSV.

Thanks

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

You can create a json string to store the friends column. For example, in the csv convert friends column values as {"firstname":test,"email":firsttest@test.com,"number":12225435} this will now be a separate column and store it in database in a text column. While retrieving the data you can decode the json to array.

For converting the friends column to json you can copy the csv data to excel sheet and apply the formula to convert friends column json and again save the excel as csv.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!