Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

144
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda